/*
 * NTDown Phase 8R — canonical Main App design system.
 * Visual baseline: owner-approved Homepage Prototype V1.
 * Authorized differences: three ad reservations, real-content-only Blog,
 * progressive Paste/FAQ motion, Trust pages, first-party SVG icon system,
 * 860px task surfaces and result surfaces up to 1040px.
 */

:root {
    --p8r-brand: #4B55D9;
    --p8r-brand-600: #3F48C7;
    --p8r-brand-700: #353DAF;
    --p8r-brand-soft: #EEF0FF;
    --p8r-violet: #7C5CFC;
    --p8r-violet-soft: #A78BFA;
    --p8r-sky: #4EA7F8;
    --p8r-aqua: #38BDF8;
    --p8r-ink: #111827;
    --p8r-heading: #172033;
    --p8r-copy: #4B5565;
    --p8r-muted: #6B7280;
    --p8r-border: #E4E7EC;
    --p8r-border-strong: #D0D5DD;
    --p8r-surface: #FFFFFF;
    --p8r-soft: #F8FAFC;
    --p8r-dark: #141827;
    --p8r-shadow: 0 18px 50px rgba(31, 39, 89, .10);
    --p8r-shadow-sm: 0 10px 30px rgba(31, 39, 89, .07);
    --p8r-focus: 0 0 0 3px rgba(75, 85, 217, .22);
    --p8r-shell: 1200px;
    --p8r-task: 860px;
    --p8r-result: 1040px;
    --p8r-reading: 820px;
}

body {
    background: #fff;
    color: var(--p8r-copy);
    line-height: 1.65;
}

body[data-page-id] .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: clip;
}

body[data-page-id] svg {
    display: block;
}

:focus-visible {
    outline: none;
    box-shadow: var(--p8r-focus);
}

/* Shared Header */
.site-header {
    position: relative;
    z-index: 40;
    height: 74px;
    min-height: 74px;
    border-bottom: 1px solid rgba(228, 231, 236, .8);
    background: rgba(255, 255, 255, .96);
}

.site-header__inner {
    width: min(calc(100% - 64px), var(--p8r-shell));
    height: 100%;
    min-height: 0;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand__wordmark {
    width: 140px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.primary-nav > a,
.tools-disclosure__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #4B5565;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.tools-disclosure__button:hover,
.tools-disclosure__button[aria-expanded="true"] {
    background: #F6F7FF;
    color: var(--p8r-brand);
}

.tools-disclosure {
    position: relative;
}

.tools-disclosure__button svg {
    width: 15px;
    height: 15px;
}

.tools-disclosure__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(620px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 25px;
    border: 1px solid var(--p8r-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 26px 72px rgba(17, 24, 39, .14);
}

.tools-disclosure__panel[hidden] {
    display: none;
}

.tools-nav-group h2 {
    margin: 0 0 9px;
    color: var(--p8r-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tools-nav-group ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tools-nav-group a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--p8r-copy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.tools-nav-group a span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--p8r-brand-soft);
    color: var(--p8r-brand);
}

.tools-nav-group a span svg {
    width: 16px;
    height: 16px;
}

.tools-nav-group a:hover,
.tools-nav-group a[aria-current="page"] {
    background: #F6F7FF;
    color: var(--p8r-brand);
}

.mobile-menu,
.mobile-navigation {
    display: none;
}

/* Task surface + Results */
.tool-panel {
    width: min(calc(100% - 64px), var(--p8r-result));
    margin-inline: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tool-form {
    width: 100%;
    margin: 0;
}

.tool-form__task {
    position: relative;
    width: min(100%, var(--p8r-task));
    margin-inline: auto;
    padding: 25px 26px 19px;
    border: 1px solid transparent;
    border-radius: 27px;
    background:
        linear-gradient(rgba(255, 255, 255, .97), rgba(255, 255, 255, .97)) padding-box,
        linear-gradient(135deg, rgba(75, 85, 217, .27), rgba(124, 92, 252, .13), rgba(78, 167, 248, .20)) border-box;
    box-shadow: 0 24px 70px rgba(75, 85, 217, .12);
}

.tool-form__label {
    display: block;
    margin: 0 0 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
    line-height: 20px;
}

.tool-form__control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
}

.tool-form__input-wrap {
    min-width: 0;
    height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid #D9DCE8;
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tool-form__input-wrap:focus-within {
    border-color: var(--p8r-brand);
    box-shadow: var(--p8r-focus);
}

.tool-form__leading {
    width: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C84A1;
}

.tool-form__leading svg {
    width: 21px;
    height: 21px;
}

.tool-form__input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    padding: 0 8px 0 0;
    border: 0 !important;
    outline: 0;
    background: #fff;
    color: var(--p8r-ink);
    font-size: 15px;
    font-weight: 500;
    box-shadow: none !important;
}

.tool-form__input::placeholder {
    color: #667085;
}

.tool-form__paste {
    min-width: 80px;
    flex: 0 0 auto;
    white-space: nowrap;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 9px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: #F4F5F9;
    color: #4B5565;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.tool-form__paste[hidden] {
    display: none;
}

.tool-form__paste:hover {
    background: #ECEEFF;
    color: var(--p8r-brand);
}

.tool-form__paste svg {
    width: 16px;
    height: 16px;
}

.tool-form__submit {
    min-width: 154px;
    white-space: nowrap;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--p8r-brand), #626CE5);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(75, 85, 217, .22);
    cursor: pointer;
}

/* Dedicated Tool pages: intrinsic, optically balanced CTA; Homepage keeps its 154px control. */
.tool-page-shell > .tool-panel .tool-form__submit {
    min-width: 0;
    gap: 8px;
    padding-inline: 16px;
}

.tool-form__submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--p8r-brand-600), var(--p8r-brand));
}

.tool-form__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.tool-form__submit svg {
    width: 19px;
    height: 19px;
}

.tool-form__helper {
    margin: 12px 2px 0;
    color: #667085;
    font-size: 12.5px;
    line-height: 20px;
}

.tool-form__helper--hero {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tool-form__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 14px;
    color: #5D6678;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 550;
}

.tool-form__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tool-form__meta svg {
    width: 15px;
    height: 15px;
    color: #35A875;
}

.tool-form__error,
.tool-form__status {
    width: min(100%, var(--p8r-task));
    margin: 10px auto 0;
    font-size: 13px;
    line-height: 20px;
}

.tool-form__error {
    color: #B42318;
}

.tool-form__status {
    color: #475467;
}

.tool-form__status:empty {
    display: none;
    min-height: 0;
    margin-top: 0;
}

.tool-result-shell {
    width: min(100%, var(--p8r-result));
    margin: 24px auto 0;
}

.tool-result-shell:empty {
    margin-top: 0;
}

.tool-result {
    padding: 30px;
    border: 1px solid #E6E8F2;
    border-radius: 24px;
    background: linear-gradient(145deg, #FBFBFF, #F8FAFF);
    box-shadow: var(--p8r-shadow-sm);
}

.tool-result__header {
    margin-bottom: 22px;
}

.tool-result__heading {
    margin: 0;
    color: var(--p8r-heading);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.tool-result__meta,
.tool-result__secondary {
    margin: 7px 0 0;
    color: var(--p8r-muted);
}

.media-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Keep a lone media preview and its action centered without changing collections. */
.tool-result--single-media {
    width: min(100%, 620px);
    margin-inline: auto;
}

.tool-result--single-media .media-result-grid {
    grid-template-columns: minmax(0, 1fr);
}

.media-result-card,
.profile-result,
.text-result,
.hashtag-result {
    border: 1px solid #E5E8F0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.media-result-card__preview {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F6FA;
}

.media-result-card__preview img,
.media-result-card__preview video {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.media-result-card__actions,
.profile-result,
.text-result,
.hashtag-result {
    padding: 18px;
}

.result-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.result-action--primary {
    background: var(--p8r-brand);
    color: #fff;
}

/* Consistent compact, centered action targets across all media tools. */
.media-result-card__actions {
    display: flex;
    justify-content: center;
}

.media-result-card__actions .result-action,
.text-result .result-action,
.hashtag-result .result-action {
    display: flex;
    width: min(100%, 160px);
    box-sizing: border-box;
    margin-inline: auto;
}

.profile-result > .result-action {
    width: min(100%, 180px);
    justify-self: center;
}

.profile-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.profile-result__image {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-result__identity {
    display: grid;
    gap: 5px;
}

.text-result__content {
    padding: 18px;
    border-radius: 12px;
    background: #F8FAFC;
    white-space: pre-wrap;
}

.hashtag-result__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hashtag-chip {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--p8r-brand-soft);
    color: var(--p8r-brand-600);
    font-size: 13px;
    font-weight: 650;
}

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

.highlight-option {
    display: grid;
    gap: 9px;
    padding: 15px;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.highlight-option img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

.highlight-option__title {
    color: var(--p8r-heading);
    font-weight: 700;
}

.highlight-option__action {
    color: var(--p8r-brand);
    font-size: 12px;
    font-weight: 700;
}

/* Homepage Hero */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0 58px;
    background: linear-gradient(180deg, #FBFBFF 0%, #FFF 88%);
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(75, 85, 217, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 85, 217, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 75%);
    pointer-events: none;
}

.home-hero__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.home-hero__orb--one {
    width: 520px;
    height: 520px;
    left: -220px;
    top: -250px;
    background: radial-gradient(circle, rgba(124, 92, 252, .16), rgba(124, 92, 252, 0) 70%);
}

.home-hero__orb--two {
    width: 620px;
    height: 620px;
    right: -270px;
    top: -240px;
    background: radial-gradient(circle, rgba(78, 167, 248, .16), rgba(78, 167, 248, 0) 70%);
}

.home-hero__inner,
.home-section__inner,
.site-footer__inner,
.site-footer__bottom {
    width: min(calc(100% - 64px), var(--p8r-shell));
    margin-inline: auto;
}

.home-hero__inner {
    position: relative;
    text-align: center;
}

.hero-tool-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.hero-tool-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #E8E9FB;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #5D6474;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(63, 72, 199, .04);
    backdrop-filter: blur(4px);
}

.hero-tool-nav a:hover {
    border-color: #CFD3FB;
    background: #fff;
    color: var(--p8r-brand);
}

.hero-tool-nav__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--p8r-brand-soft);
    color: var(--p8r-brand);
}

.hero-tool-nav__icon svg {
    width: 12px;
    height: 12px;
}

.hero-tool-nav__arrow {
    width: 14px;
    height: 14px;
}

.home-hero__intro {
    max-width: 790px;
    margin: 0 auto;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--p8r-brand);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.home-kicker--pulse {
    margin-bottom: 14px;
    color: var(--p8r-brand-600);
    letter-spacing: .02em;
    text-transform: none;
}

.home-kicker--pulse::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p8r-brand);
    box-shadow: 0 0 0 5px rgba(75, 85, 217, .10);
}

.home-hero h1 {
    margin: 0;
    color: var(--p8r-heading);
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 720;
}

.home-hero__intro p {
    max-width: 720px;
    margin: 20px auto 0;
    color: #5D6678;
    font-size: 18px;
    line-height: 1.7;
}

.home-hero .tool-panel {
    width: min(100%, var(--p8r-result));
    margin-top: 34px;
}

.home-hero .tool-form__label {
    text-align: left;
    line-height: 1.65;
}

.home-hero__jump {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 600;
}

.home-hero__jump:hover {
    color: var(--p8r-brand);
}

.home-hero__jump-icon {
    width: 15px;
    height: 15px;
}

/* Homepage common sections */
.home-section {
    padding: 96px 0;
}

.home-section__heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.home-section__heading h2,
.home-capabilities__intro h2,
.home-faq__heading h2 {
    margin: 0;
    color: var(--p8r-heading);
    font-size: 40px;
    line-height: 1.16;
    letter-spacing: -.035em;
}

.home-section__heading p,
.home-capabilities__intro p,
.home-faq__heading p {
    margin: 14px auto 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.75;
}

.home-section__heading--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr .8fr;
    align-items: end;
    gap: 60px;
    text-align: left;
}

.home-section__heading--split p {
    margin: 0;
}

/* Homepage How-to */
.home-howto {
    background: #fff;
}

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

.home-step-card {
    overflow: hidden;
    border: 1px solid #E8EAF0;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--p8r-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p8r-shadow);
}

.home-step-card__visual {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #F5F6FF, #F7FBFF);
}

.home-step-card__visual--2 {
    background: linear-gradient(145deg, #F7F5FF, #FFF8FD);
}

.home-step-card__visual--3 {
    background: linear-gradient(145deg, #F1F5FF, #F4F1FF);
}

.home-step-card__copy {
    padding: 25px 25px 28px;
}

.home-step-card__number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 11px;
    background: var(--p8r-brand-soft);
    color: var(--p8r-brand);
    font-size: 12px;
    font-weight: 800;
}

.home-step-card__copy h3 {
    margin: 0;
    color: #25304A;
    font-size: 19px;
    line-height: 1.35;
}

.home-step-card__copy p {
    margin: 9px 0 0;
    /* WCAG normal-text contrast on white; preserve Prototype text geometry. */
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.howto-phone {
    position: absolute;
    width: 145px;
    height: 204px;
    left: 50%;
    top: 34px;
    transform: translateX(-62%);
    padding: 13px;
    border: 5px solid #fff;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(38, 48, 91, .13);
}

.howto-phone__top {
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 6px;
    background: #E6E9F3;
}

.howto-phone__media {
    display: block;
    height: 109px;
    border-radius: 12px;
    background: linear-gradient(145deg, #C4C9FF, #8390F3 45%, #7C5CFC);
}

.howto-phone__actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.howto-phone__actions i {
    width: 11px;
    height: 11px;
    border: 2px solid #B1B7C9;
    border-radius: 4px;
}

.howto-phone__actions b {
    width: 9px;
    height: 12px;
    margin-left: auto;
    border: 2px solid #B1B7C9;
    border-radius: 2px;
}

.howto-share {
    position: absolute;
    right: 37px;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid #ECECFA;
    border-radius: 13px;
    background: #fff;
    color: var(--p8r-brand);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(75, 85, 217, .15);
}

.howto-share svg {
    width: 17px;
    height: 17px;
}

.howto-browser {
    position: absolute;
    left: 35px;
    right: 35px;
    top: 55px;
    height: 145px;
    border: 5px solid #fff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 17px 36px rgba(51, 52, 101, .12);
}

.howto-browser__bar {
    height: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid #EEF0F5;
}

.howto-browser__bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D9DCE6;
}

.howto-browser__body {
    padding: 22px 16px;
    position: relative;
}

.howto-browser__body strong {
    display: block;
    margin-bottom: 12px;
    color: var(--p8r-brand);
    font-size: 11px;
    font-weight: 850;
}

.howto-browser__body > span {
    height: 36px;
    display: block;
    padding: 9px 64px 9px 11px;
    border: 2px solid #9EA6F6;
    border-radius: 10px;
    color: #6A7282;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
}

.howto-browser__body b {
    position: absolute;
    right: 21px;
    bottom: 27px;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--p8r-brand);
    color: #fff;
    font-size: 9px;
}

.howto-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 40px;
    bottom: 37px;
    border-radius: 50%;
    border: 6px solid rgba(124, 92, 252, .15);
}

.howto-result {
    position: absolute;
    width: 200px;
    height: 178px;
    left: 50%;
    top: 33px;
    transform: translateX(-50%);
    padding: 12px;
    border: 5px solid #fff;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 17px 36px rgba(51, 52, 101, .13);
}

.howto-result__media {
    height: 91px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #34405F, #5968A0);
}

.howto-result__media i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--p8r-brand);
    font-style: normal;
    font-size: 14px;
}

.howto-result__lines {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.howto-result__lines i {
    height: 5px;
    border-radius: 5px;
    background: #E3E6EF;
}

.howto-result__lines i:first-child { width: 52px; }
.howto-result__lines i:last-child { width: 30px; }

.howto-result__button {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    background: var(--p8r-brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.howto-result__button svg {
    width: 13px;
    height: 13px;
}

.howto-success {
    position: absolute;
    right: 42px;
    top: 30px;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #30BD80;
    color: #fff;
    box-shadow: 0 8px 18px rgba(48, 189, 128, .22);
}

.howto-success svg {
    width: 15px;
    height: 15px;
}

/* Tool directory */
.tool-directory {
    background: #F8FAFF;
}

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

.tool-card {
    min-width: 0;
    min-height: 154px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    border: 1px solid #E7E9F1;
    border-radius: 19px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(31, 39, 89, .035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #CFD4FA;
    background: #fff;
    color: inherit;
    box-shadow: 0 14px 30px rgba(48, 55, 105, .09);
}

.tool-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #F1F2FF;
    color: var(--p8r-brand);
}

.tool-card__icon svg {
    width: 22px;
    height: 22px;
}

.tool-card[data-featured="true"] .tool-card__icon {
    background: linear-gradient(135deg, var(--p8r-brand), var(--p8r-violet));
    color: #fff;
}

.tool-card[data-featured="true"][data-tool-card-id="reels"] .tool-card__icon {
    background: linear-gradient(135deg, #6D60EB, var(--p8r-sky));
}

.tool-card__copy {
    display: block;
    margin-top: 17px;
}

.tool-card__title {
    display: block;
    color: #263149;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.tool-card__description {
    display: block;
    margin-top: 7px;
    /* Meaningful Tool-card descriptions must meet AA contrast on white. */
    color: #667085;
    font-size: 12.5px;
    line-height: 1.55;
}

.tool-card__arrow {
    position: absolute;
    right: 18px;
    top: 21px;
    color: #98A0B3;
}

.tool-card__arrow svg {
    width: 17px;
    height: 17px;
}

.tool-card[data-featured="true"] {
    grid-column: span 2;
    min-height: 196px;
    padding-right: 180px;
    overflow: hidden;
}

.tool-card[data-featured="true"] .tool-card__title {
    font-size: 17px;
}

.tool-card[data-featured="true"] .tool-card__description {
    max-width: 310px;
    font-size: 13px;
}

.tool-card__art {
    position: absolute;
    right: 24px;
    bottom: 20px;
    width: 132px;
    height: 118px;
    border-radius: 19px;
    background: linear-gradient(145deg, #EDF0FF, #F6F3FF);
    transform: rotate(2deg);
}

.tool-card__art--video i {
    position: absolute;
    border-radius: 12px;
    background: linear-gradient(145deg, #8995F4, #5764D9);
}

.tool-card__art--video i:first-child {
    width: 86px;
    height: 79px;
    left: 13px;
    top: 16px;
}

.tool-card__art--video i:nth-child(2) {
    width: 48px;
    height: 62px;
    right: 9px;
    bottom: 9px;
    background: linear-gradient(145deg, #A68DF8, #7565E9);
}

.tool-card__art b {
    position: absolute;
    left: 52px;
    top: 47px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--p8r-brand);
    box-shadow: 0 8px 14px rgba(49, 58, 124, .15);
}

.tool-card__art b svg {
    width: 16px;
    height: 16px;
}

.tool-card__art--reels {
    background: linear-gradient(145deg, #EFF8FF, #F3F0FF);
}

.tool-card__art--reels i {
    position: absolute;
    inset: 12px 27px;
    border: 5px solid #fff;
    border-radius: 19px;
    background: linear-gradient(160deg, #6EC3FB, #7363E9);
    box-shadow: 0 9px 18px rgba(65, 83, 153, .12);
}

.tool-card__art--reels b {
    width: 38px;
    height: 38px;
    left: auto;
    right: 11px;
    top: 12px;
    border-radius: 13px;
    box-shadow: 0 8px 17px rgba(46, 57, 115, .12);
}

/* Dark benefits */
.home-capabilities {
    padding: 104px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #171A2D 0%, #1A1D34 52%, #1D2140 100%);
    color: #fff;
}

.home-capabilities__inner {
    display: grid;
    grid-template-columns: .72fr 1.45fr;
    gap: 72px;
    align-items: start;
}

.home-capabilities__intro {
    position: relative;
    padding-top: 18px;
}

.home-kicker--inverse {
    color: #BFC4FF;
}

.home-capabilities__intro h2 {
    color: #fff;
    font-size: 42px;
}

.home-capabilities__intro p {
    color: #AEB5C9;
}

.home-capabilities__orb {
    position: absolute;
    width: 340px;
    height: 340px;
    left: -210px;
    top: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 252, .22), transparent 68%);
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-value-card {
    min-height: 158px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 19px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.home-value-card__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(124, 92, 252, .17);
    color: #D4D7FF;
}

.home-value-card__icon svg {
    width: 19px;
    height: 19px;
}

.home-value-card h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

.home-value-card p {
    margin: 7px 0 0;
    color: #AEB5C9;
    font-size: 12.5px;
    line-height: 1.6;
}

/* Showcase */
.home-workflows {
    background: #fff;
}

.home-workflow-grid {
    display: grid;
    gap: 24px;
}

.home-workflow-card {
    min-height: 410px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 54px 58px;
    border: 1px solid #E9EAF2;
    border-radius: 28px;
    background: linear-gradient(135deg, #FBFBFF, #F7F9FF);
    overflow: hidden;
}

.home-workflow-card--identity {
    background: linear-gradient(135deg, #FAF8FF, #FBFDFF);
}

.home-workflow-card--identity .home-workflow-card__copy {
    order: 2;
}

.home-workflow-card--identity .home-workflow-card__visual {
    order: 1;
}

.home-workflow-card__label {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #EAF0FF;
    color: var(--p8r-brand);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-workflow-card__label--violet {
    background: #F0EBFF;
    color: #694ED6;
}

.home-workflow-card__copy h3 {
    max-width: 490px;
    margin: 16px 0 0;
    color: #202A42;
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.home-workflow-card__copy p {
    max-width: 510px;
    margin: 14px 0 0;
    color: var(--p8r-muted);
}

.home-workflow-card__copy a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: var(--p8r-brand);
    font-weight: 700;
    text-decoration: none;
}

.home-workflow-card__copy a svg {
    width: 16px;
    height: 16px;
}

.home-workflow-card__visual {
    height: 300px;
    position: relative;
}

.workflow-media-stack {
    max-width: 420px;
    height: 100%;
    position: relative;
    margin-inline: auto;
}

.workflow-media-stack__back,
.workflow-media-stack__mid,
.workflow-media-stack__front {
    position: absolute;
    width: 215px;
    height: 255px;
    border: 6px solid #fff;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(42, 54, 109, .14);
}

.workflow-media-stack__back {
    left: 28px;
    top: 35px;
    transform: rotate(-9deg);
    background: linear-gradient(145deg, #E6EBFF, #D9DFFA);
}

.workflow-media-stack__mid {
    right: 28px;
    top: 24px;
    transform: rotate(8deg);
    background: linear-gradient(145deg, #EFE8FF, #E4DDFB);
}

.workflow-media-stack__front {
    left: 50%;
    top: 17px;
    transform: translateX(-50%);
    padding: 13px;
}

.workflow-media-stack__photo {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #43516F, #7381BD);
    color: #fff;
}

.workflow-media-stack__photo svg {
    width: 42px;
    height: 42px;
}

.workflow-media-stack__line {
    display: block;
    width: 75%;
    height: 6px;
    margin-top: 11px;
    border-radius: 4px;
    background: #E7E9F2;
}

.workflow-media-stack__line--short {
    width: 48%;
    margin-top: 6px;
}

.workflow-media-stack__front b {
    width: 100%;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 10px;
    background: var(--p8r-brand);
    color: #fff;
    font-size: 11px;
}

.workflow-profile {
    width: 190px;
    height: 285px;
    margin: 0 auto;
    padding: 18px 14px;
    border: 7px solid #fff;
    border-radius: 31px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(47, 54, 111, .15);
}

.workflow-profile__avatar {
    width: 62px;
    height: 62px;
    display: block;
    margin: 5px auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A86ED, #AE8BF8);
}

.workflow-profile > i {
    display: block;
    height: 6px;
    margin: 6px auto;
    border-radius: 5px;
    background: #E4E6EF;
}

.workflow-profile > i:nth-of-type(1) { width: 82px; }
.workflow-profile > i:nth-of-type(2) { width: 55px; }

.workflow-profile__stories {
    display: flex;
    gap: 7px;
    margin: 17px 0 13px;
}

.workflow-profile__stories b {
    width: 31px;
    height: 31px;
    border: 3px solid #CDC9FB;
    border-radius: 50%;
    background: #F0F1FF;
}

.workflow-profile__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.workflow-profile__grid b {
    height: 43px;
    border-radius: 5px;
    background: linear-gradient(145deg, #E1E6FF, #E9E2FB);
}

.workflow-floating {
    position: absolute;
    padding: 9px 13px;
    border: 1px solid #EBEAFB;
    border-radius: 12px;
    background: #fff;
    color: #5961AA;
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 10px 22px rgba(43, 52, 111, .11);
}

.workflow-floating--one { left: 40px; top: 72px; }
.workflow-floating--two { right: 32px; bottom: 54px; }

/* Ads */
.home-ad-reservation {
    width: min(calc(100% - 64px), 970px);
    min-height: 122px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 28px auto;
    border: 1px dashed #D7DBE7;
    border-radius: 18px;
    background: #FAFBFC;
    color: var(--p8r-muted);
    text-align: center;
}

.home-ad-reservation span {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-ad-reservation small {
    margin-top: 4px;
    font-size: 11px;
}

/* FAQ */
.home-faq {
    background: #fff;
}

.home-faq__inner {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 76px;
    align-items: start;
}

.home-faq__heading {
    position: sticky;
    top: 32px;
}

.home-faq__heading h2 {
    font-size: 38px;
}

.home-faq__items,
.faq-section {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid #E7E9F0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: 0 8px 22px rgba(37, 46, 94, .05);
}

.faq-item summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    list-style: none;
    color: #30394E;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    /* Preserve the Prototype line box while keeping the 17px SVG centered. */
    display: inline-flex;
    align-items: center;
    min-height: 1.65em;
    color: #8790A3;
    font-size: 17px;
    font-weight: 400;
    transition: transform .2s ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-item > p {
    margin: 0;
    padding: 0 20px 20px;
    /* Meaningful answer text must meet AA contrast on the white disclosure. */
    color: #667085;
    font-size: 13.5px;
    line-height: 1.7;
}

.faq-item[data-faq-animating="true"] {
    overflow: hidden;
}

/* Dedicated Tool pages */
.tool-page-shell {
    padding-bottom: 100px;
    background:
        radial-gradient(circle at 12% 0%, rgba(78, 167, 248, .08), transparent 22%),
        radial-gradient(circle at 88% 0%, rgba(124, 92, 252, .07), transparent 23%),
        linear-gradient(180deg, #FBFBFF 0, #FFF 640px);
}

.breadcrumb,
.page-intro,
.content-section {
    width: min(calc(100% - 64px), var(--p8r-result));
    margin-inline: auto;
}

.breadcrumb,
.content-section {
    max-width: none;
}

.breadcrumb {
    padding-top: 30px;
    color: #7A8190;
    font-size: 12px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #B0B6C3;
}

.breadcrumb a,
.breadcrumb [aria-current="page"] {
    color: #5D6678;
    text-decoration: none;
}

.page-intro {
    max-width: 820px;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

.page-intro h1 {
    margin: 0;
    color: var(--p8r-heading);
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.page-intro > p {
    max-width: 720px;
    margin: 16px auto 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}

.tool-page-shell > .tool-panel {
    margin-bottom: 78px;
}

.content-section {
    margin-top: 22px;
    padding: 34px 36px;
    border: 1px solid #E7E9F1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 39, 89, .04);
}

.content-section h2 {
    margin: 0;
    color: #25304A;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.content-section > p {
    max-width: var(--p8r-reading);
    margin: 12px 0 0;
    color: #697386;
    line-height: 1.75;
}

.content-section ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding-left: 21px;
    color: #5D6678;
}

.content-section--howto {
    padding: 38px 36px;
}

.content-section--howto > h2 {
    margin-bottom: 24px;
}

.content-section--howto ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-section--howto li {
    min-height: 360px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 210px 20px 22px;
    border: 1px solid #E8EAF0;
    border-radius: 20px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center 18px;
    background-size: calc(100% - 28px) 174px;
    color: #5D6678;
    font-size: 14px;
    line-height: 1.65;
    box-shadow: 0 7px 22px rgba(31, 39, 89, .04);
}

.content-section--howto li + li {
    margin-top: 0;
}

.content-section__step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    background: var(--p8r-brand-soft);
    color: var(--p8r-brand);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.content-section__step-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1px;
}

body[data-page-id="video"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/video-step-1.svg'); }
body[data-page-id="video"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/video-step-2.svg'); }
body[data-page-id="video"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/video-step-3.svg'); }
body[data-page-id="reels"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/reels-step-1.svg'); }
body[data-page-id="reels"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/reels-step-2.svg'); }
body[data-page-id="reels"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/reels-step-3.svg'); }
body[data-page-id="photo"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/photo-step-1.svg'); }
body[data-page-id="photo"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/photo-step-2.svg'); }
body[data-page-id="photo"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/photo-step-3.svg'); }
body[data-page-id="story"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/story-step-1.svg'); }
body[data-page-id="story"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/story-step-2.svg'); }
body[data-page-id="story"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/story-step-3.svg'); }
body[data-page-id="profile"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/profile-step-1.svg'); }
body[data-page-id="profile"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/profile-step-2.svg'); }
body[data-page-id="profile"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/profile-step-3.svg'); }
body[data-page-id="highlights"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/highlights-step-1.svg'); }
body[data-page-id="highlights"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/highlights-step-2.svg'); }
body[data-page-id="highlights"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/highlights-step-3.svg'); }
body[data-page-id="highlight_covers"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/highlight_covers-step-1.svg'); }
body[data-page-id="highlight_covers"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/highlight_covers-step-2.svg'); }
body[data-page-id="highlight_covers"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/highlight_covers-step-3.svg'); }
body[data-page-id="caption"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/caption-step-1.svg'); }
body[data-page-id="caption"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/caption-step-2.svg'); }
body[data-page-id="caption"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/caption-step-3.svg'); }
body[data-page-id="bio"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/bio-step-1.svg'); }
body[data-page-id="bio"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/bio-step-2.svg'); }
body[data-page-id="bio"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/bio-step-3.svg'); }
body[data-page-id="hashtag"] .content-section--howto li:nth-child(1) { background-image: url('/assets/illustrations/howto/hashtag-step-1.svg'); }
body[data-page-id="hashtag"] .content-section--howto li:nth-child(2) { background-image: url('/assets/illustrations/howto/hashtag-step-2.svg'); }
body[data-page-id="hashtag"] .content-section--howto li:nth-child(3) { background-image: url('/assets/illustrations/howto/hashtag-step-3.svg'); }

.related-tools .tool-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.related-tools .tool-card {
    min-height: 138px;
}

/* Footer */
.site-footer {
    padding: 70px 0 0;
    border-top: 0;
    background: var(--p8r-dark);
    color: #AEB5C9;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 3fr;
    gap: 48px;
    padding-top: 0;
    padding-bottom: 52px;
}

.site-footer__brand img {
    width: 142px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .97;
}

.site-footer__brand p {
    max-width: 260px;
    margin: 18px 0;
    color: #AAB1C3;
    font-size: 13px;
    line-height: 1.65;
}

.site-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7F899F;
    font-size: 11px;
    line-height: 1.65;
}

.site-footer__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6F7FE8;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    min-height: 0;
    display: block;
    margin: 9px 0;
    color: #AEB5C9;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.65;
}

.footer-nav a:hover {
    color: #fff;
}

.site-footer__bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8993A8;
    font-size: 11px;
    line-height: 1.65;
}

/* Error page */
.error-page {
    min-height: 62vh;
    padding: 70px 0;
}

.button-link {
    display: inline-flex;
    margin-top: 20px;
    padding: 11px 16px;
    border-radius: 11px;
    background: var(--p8r-brand);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1023px) {
    .tool-panel {
        width: min(calc(100% - 48px), var(--p8r-result));
    }

    .home-hero .tool-panel {
        width: 100%;
    }

    .site-header__inner,
    .home-hero__inner,
    .home-section__inner,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(calc(100% - 48px), var(--p8r-shell));
    }

    .home-hero h1 {
        font-size: 52px;
    }

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

    .tool-card[data-featured="true"] {
        grid-column: span 1;
        padding-right: 20px;
    }

    .tool-card__art {
        display: none;
    }

    .home-capabilities__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-capabilities__intro {
        max-width: 650px;
    }

    .home-workflow-card {
        padding: 44px 38px;
    }

    .home-section__heading--split {
        gap: 36px;
    }

    .home-faq__inner {
        grid-template-columns: .8fr 1.2fr;
        gap: 44px;
    }

    .content-section--howto li {
        min-height: 260px;
        padding: 28px 28px 28px 300px;
        background-position: 24px center;
        background-size: 248px 140px;
    }

    .content-section--howto ol {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1.2fr 2fr;
        gap: 48px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
    }

    .footer-nav section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .site-header {
        height: 64px;
        min-height: 64px;
    }

    .site-header__inner,
    .home-hero__inner,
    .home-section__inner,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(calc(100% - 40px), var(--p8r-shell));
    }

    .brand__wordmark {
        width: 124px;
    }

    .primary-nav {
        display: none;
    }

    .mobile-menu {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--p8r-ink);
        cursor: pointer;
    }

    .mobile-menu:hover,
    .mobile-menu[aria-expanded="true"] {
        background: #F6F7FF;
        color: var(--p8r-brand);
    }

    .mobile-menu svg {
        width: 22px;
        height: 22px;
    }

    .mobile-navigation {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: block;
        max-height: calc(100vh - 64px);
        overflow: auto;
        padding: 18px 20px 28px;
        border-top: 1px solid #EEF0F3;
        background: #fff;
        box-shadow: 0 22px 48px rgba(17, 24, 39, .11);
    }

    .mobile-navigation[hidden] {
        display: none;
    }

    .mobile-navigation > nav {
        display: grid;
        gap: 4px;
    }

    .mobile-navigation a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 10px;
        color: var(--p8r-copy);
        text-decoration: none;
        font-size: 14px;
        font-weight: 650;
    }

    .mobile-navigation a:hover {
        background: #F6F7FF;
        color: var(--p8r-brand);
    }

    .mobile-navigation__tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 14px;
        padding-top: 16px;
        border-top: 1px solid #EEF0F3;
    }

    .mobile-navigation__tools h2 {
        margin: 0 0 7px;
        color: var(--p8r-muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .mobile-navigation__tools a {
        min-height: 36px;
        padding: 5px 0;
        font-size: 12px;
    }

    .mobile-navigation__explore {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #EEF0F3;
    }

    .home-hero {
        padding: 42px 0 44px;
    }

    .hero-tool-nav {
        justify-content: flex-start;
        gap: 7px;
        margin-bottom: 26px;
    }

    .hero-tool-nav a {
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .home-hero__inner,
    .home-hero__intro {
        text-align: left;
    }

    .home-kicker--pulse {
        font-size: 12px;
    }

    .home-hero h1 {
        font-size: 40px;
        line-height: 1.08;
    }

    .home-hero__intro p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.65;
    }

    .home-hero .tool-panel {
        width: 100%;
        margin-top: 27px;
    }

    .tool-panel {
        width: min(calc(100% - 40px), var(--p8r-result));
    }

    .home-hero .tool-panel {
        width: 100%;
    }

    .tool-form__task {
        padding: 20px;
        border-radius: 22px;
    }

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

    .tool-form__input-wrap,
    .tool-form__submit {
        height: 56px;
    }

    .tool-form__submit {
        width: 100%;
    }

    .tool-form__meta {
        gap: 8px 15px;
    }

    .home-hero__jump {
        margin-top: 18px;
    }

    .home-section {
        padding: 64px 0;
    }

    .home-section__heading {
        margin-bottom: 30px;
        text-align: left;
    }

    .home-section__heading h2,
    .home-capabilities__intro h2,
    .home-faq__heading h2 {
        font-size: 31px;
    }

    .home-section__heading p,
    .home-capabilities__intro p,
    .home-faq__heading p {
        font-size: 14px;
    }

    .home-step-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-step-card__visual {
        height: 220px;
    }

    .home-section__heading--split {
        display: block;
    }

    .home-section__heading--split > p {
        margin-top: 12px;
    }

    .home-tool-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        min-height: auto;
    }

    .tool-card[data-featured="true"] {
        min-height: 165px;
    }

    .home-capabilities {
        padding: 70px 0;
    }

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

    .home-value-card {
        min-height: auto;
    }

    .home-workflow-card,
    .home-workflow-card--identity {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 32px 24px;
    }

    .home-workflow-card--identity .home-workflow-card__copy,
    .home-workflow-card--identity .home-workflow-card__visual {
        order: initial;
    }

    .home-workflow-card__copy {
        order: 1 !important;
    }

    .home-workflow-card__visual {
        order: 2 !important;
        height: 270px;
    }

    .home-workflow-card__copy h3 {
        font-size: 24px;
    }

    .home-ad-reservation {
        width: min(calc(100% - 40px), 970px);
        min-height: 100px;
        margin-block: 20px;
    }

    .home-faq__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-faq__heading {
        position: static;
    }

    .breadcrumb,
    .page-intro,
    .content-section {
        width: min(calc(100% - 36px), var(--p8r-result));
    }

    .breadcrumb {
        padding-top: 22px;
    }

    .page-intro {
        margin-top: 34px;
        margin-bottom: 24px;
        text-align: left;
    }

    .page-intro h1 {
        font-size: 38px;
    }

    .page-intro > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .tool-page-shell > .tool-panel {
        margin-bottom: 52px;
    }

    .content-section {
        padding: 26px 22px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .content-section--howto li {
        min-height: 330px;
        padding: 190px 18px 22px;
        background-position: center 16px;
        background-size: calc(100% - 24px) 158px;
    }

    .related-tools .tool-card-grid,
    .media-result-grid,
    .highlight-selector {
        grid-template-columns: 1fr;
    }

    .tool-result {
        padding: 20px;
    }

    .profile-result {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-result__image {
        margin-inline: auto;
    }

    .site-footer {
        padding-top: 70px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 52px;
    }

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

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

    .footer-nav section:last-child {
        grid-column: auto;
    }

    .site-footer__bottom {
        min-height: 0;
        padding: 20px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .mobile-navigation__tools {
        grid-template-columns: 1fr 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
