body {
    background: #021D3D !important;
}

.hero {
    background-color: #fff;
    background-image: url("../assets/images/nofollow_dofollow/background-lines.webp");
    background-position: top left;
    background-repeat: repeat;
    padding: 80px 140px 140px 140px;
    border-radius: 0 0 60px 60px;
    position: relative;
    z-index: 2;
}

.hero__container {
    width: 100%;
}

.hero__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 40px;
}

.hero__title {
    width: 100%;
    color: #031d3d;
    font-size: 40px;
    font-weight: 700;
    line-height: 108%;
}

.hero__text {
    color: #4a5578;
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
}

.textarea__container {
    width: 100%;
}

.textarea {
    width: 100%;
    background: #031d3d;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.textarea__field {
    width: 100%;
    height: 274px;
    border: 0;
    outline: none;
    resize: none;
    border-radius: 24px;
    padding: 28px 30px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 400;
    line-height: 160%;
    color: #031d3d;
    background: #fff;
}

.textarea__field::placeholder {
    color: #7f88a2;
}

.textarea__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 28px;
}

.button__arrow {
    background: #031D3D;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 200px;
    background-color: #10335F;
    color: #fff;
    font-size: 18px;
    line-height: 1.1em;
    font-weight: 600;
    width: max-content;
}

/* ===================== */
/* What Is Section       */
/* ===================== */

#meta_about {
    background-color: #021D3D;
    padding: 80px 140px;
}

#meta_about_inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

#meta_about_left {
    flex: 1;
    min-width: 0;
}

#meta_about .pill {
    margin-bottom: 12px;
}

#meta_about h2 {
    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

#meta_about_left > p {
    font-size: 20px;
    line-height: 1.6em;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 12px;
}

.meta_about_highlight {
    font-weight: 600;
    opacity: 0.9 !important;
}

#meta_about_right {
    flex-shrink: 0;
    width: 420px;
}

.meta_about_visual {
    background: #10335F;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meta_visual_tag {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta_visual_label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta_visual_bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.meta_visual_fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #077DFD, #63AEFF);
    transition: width 1s ease;
}

.meta_visual_desc .meta_visual_fill {
    background: linear-gradient(90deg, #16b364, #4ade80);
}

.meta_visual_chars {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    opacity: 0.5;
    align-self: flex-end;
}

.meta_visual_check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta_visual_check span {
    font-size: 16px;
    color: #16b364;
    font-weight: 600;
}

/* ===================== */
/* Focus / Checklist     */
/* ===================== */

#meta_focus {
    background-color: #021D3D;
    padding: 0 140px 80px;
}

#meta_focus_inner {
    background: #10335F;
    border-radius: 32px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

#meta_focus_left {
    flex: 1;
    min-width: 0;
}

#meta_focus .pill {
    margin-bottom: 12px;
    background-color: rgba(255, 255, 255, 0.08);
}

#meta_focus h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

#meta_focus_left > p {
    font-size: 20px;
    line-height: 1.6em;
    color: #fff;
    opacity: 0.65;
}

#meta_focus_right {
    flex-shrink: 0;
    width: 400px;
}

#meta_focus_right h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

#meta_checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta_check_item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta_check_item svg {
    flex-shrink: 0;
}

.meta_check_item span {
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.85;
}

/* ===================== */
/* Why Use Section       */
/* ===================== */

#meta_why {
    background-color: #021D3D;
    padding: 80px 140px;
}

#meta_why_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#meta_why .pill {
    margin-bottom: 12px;
}

#meta_why h2 {
    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 48px;
}

#meta_why_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 800px;
}

.meta_why_item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta_why_item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta_why_icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.08);
    color: #077DFD;
}

.meta_why_text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.meta_why_text p {
    font-size: 17px;
    line-height: 1.5em;
    color: #fff;
    opacity: 0.55;
}

/* Tools section */
.tools {
    background-color: rgba(3, 29, 61, 1);
    margin-bottom: 140px;
    padding-top: 88px;
    padding-bottom: 88px;
    border-radius: 60px;
}

.tools__container {
    padding: 0 140px;
    margin: 0;
}

.tools__swiper-wrapper {
    box-sizing: border-box;
    height: auto;
}

.tools__label {
    margin-bottom: 14px;
}

.tools__label span:nth-child(1) {
    display: block;
}

.tools__label span:nth-child(2) {
    display: none;
}

.tools__title {
    margin-bottom: 56px;
    color: #fff;
    font-family: "League Spartan";
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 108%;
}

.tools__title span:nth-child(1) {
    display: block;
}

.tools__title span:nth-child(2) {
    display: none;
}

.tools__slide {
    display: flex;
    max-width: 808px;
    height: auto;
    flex-direction: column;
    border-radius: var(--Middle, 24px);
    background: var(--White, #fff);
    padding: 26px 40px 35px 40px;
}

.tools__slide:nth-child(4) {
    display: none;
}

.tools__swiper-buttons {
    margin-top: 70px;
    gap: 24px;
    display: flex;
    justify-content: center;
}

.tools__swiper-button {
    display: flex;
    height: 52px;
    width: 52px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: var(--Extra-large, 200px);
    transition: all 0.3s ease-in;
    outline: none;
}

.tools__swiper-button svg path {
    transition: all 0.3s ease-in;
}

.tools__swiper-button:nth-child(1) svg {
    transform: rotate(180deg);
}

/* Prev */
.tools__swiper-button-prev {
    border: 2px solid var(--Main-Blue-900, #031d3d);
    background: var(--Main-Blue-900, #031d3d);
}

.tools__swiper-button-prev:disabled {
    border: 2px solid var(--Gray-300, #dcdfea);
    background: var(--Gray-300, #dcdfea);
}

.tools__swiper-button-prev:hover {
    border: 2px solid var(--White, #fff);
    background: var(--White, #fff);
}

.tools__swiper-button-prev:hover svg path {
    stroke: var(--Main-Blue-600, #077dfd);
}

.tools__swiper-button-prev:focus {
    border: 2px solid var(--Main-Blue-600, #077dfd);
    background: var(--White, #fff);
}

.tools__swiper-button-prev:focus svg path {
    stroke: var(--Main-Blue-600, #077dfd);
}

/* Next */
.tools__swiper-button-next {
    border: 2px solid var(--Main-Blue-600, #077dfd);
    background: var(--Main-Blue-600, #077dfd);
}

.tools__swiper-button-next:disabled {
    border: 2px solid var(--Gray-300, #dcdfea);
    background: var(--Gray-300, #dcdfea);
}

.tools__swiper-button-next:hover {
    border: 2px solid var(--White, #fff);
    background: var(--White, #fff);
}

.tools__swiper-button-next:hover svg path {
    stroke: var(--Main-Blue-600, #077dfd);
}

.tools__swiper-button-next:focus {
    border: 2px solid var(--Main-Blue-600, #077dfd);
    background: var(--White, #fff);
}

.tools__swiper-button-next:focus svg path {
    stroke: var(--Main-Blue-600, #077dfd);
}

/* Tool slide inner */

.tools-slide__content {
    height: 309px;
    min-height: 309px;
    flex: 0 1 309px;
    padding: 12px 14px;
    margin-bottom: 24px;
    border-radius: var(--Middle, 24px);
    background: var(--Main-Blue-300, #c6e1ff);
}

.tools-slide__title {
    color: var(--Gray-900, #181f35);
    font-family: "League Spartan";
    font-size: 34px;
    font-style: normal;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 118%;
}

.tools-slide__text {
    color: var(--Gray-700, #4a5578);
    font-family: "League Spartan";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    margin-bottom: 36px;
}

.tools-slide__buttons {
    margin-top: auto;
    display: flex;
    justify-content: end;
}

.tools-slide__button-wrapper {
    height: 52px !important;
    min-height: 52px !important;
    width: 157px !important;
    max-width: 157px !important;
}

.tools-slide__button {
    padding: 10px 8px !important;
    height: 52px !important;
    max-width: -moz-fit-content !important;
    max-width: fit-content !important;
    width: 157px !important;
    color: var(--Main-Blue-900, #031d3d);
}

.tools-slide__button .button__text {
    font-size: 22px !important;
}

.tools-slide__button .button__arrow {
    display: flex !important;
}

.tools-slide__button:active {
    padding: 8px 6px !important;
    height: 48px !important;
}

/* Tools animation */

.tools-anim__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px 20px 16px 20px;
    border-radius: 16px;
    background: var(--Main-Blue-900, #031d3d);
}

.tools-anim__textarea {
    display: flex;
    padding: 13.544px;
    opacity: 1;
    gap: 3.386px;
    height: 213px;
    flex-shrink: 0;
    width: 100%;
    border-radius: 10.164px;
    background: var(--White, #fff);
}

.tools-anim__textarea-text {
    color: var(--Gray-500, #7f88a2);
    font-family: "League Spartan";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

.tools-anim__img {
    margin-left: auto;
    margin-top: 12px;
}

.tools-anim__cursor {
    display: flex;
    position: absolute;
}

.tools-anim__cursor svg {
    display: flex;
    width: 37px;
    height: 37px;
    padding: 2.25px 4.523px 2.288px 4.583px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in;
}

.tools-anim__cursor span {
    display: flex;
    width: 43px;
    height: 26px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--Extra-small, 8px);
    background-color: var(--Main-Blue-200, #e5f1ff);
    color: #000;
    text-align: center;
    font-family: "League Spartan";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

/* Options */
.tools-anim.option-1 .tools-anim__wrapper {
    background: var(--Main-Blue-600, #077dfd);
}

.tools-anim.option-2 .tools-anim__wrapper {
    background: var(--Main-Blue-900, #031d3d);
}

.tools-anim.option-3 .tools-anim__wrapper {
    background: var(--Main-Blue-700, #0e44b0);
}

.animated-path {
    fill: none;
    stroke: var(--Main-Blue-600);
    stroke-width: 4;
    stroke-dasharray: 288;
    stroke-dashoffset: 280;
}

.tools-anim.option-1 .animated-path,
.tools-anim.option-3 .animated-path {
    stroke: var(--White);
}

.tools-anim__loading {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 39%;
    top: 28%;
    border-radius: 50%;
    opacity: 0;
    rotate: 180deg;
    transition: opacity 0.4s ease-in-out;
}

.tools-anim-result {
    display: flex;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    flex-direction: column;
}

.tools-anim-result__title {
    color: var(--White, #fff);
    font-family: "League Spartan";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 140%;
}

.tools-anim-result-area {
    display: flex;
    width: 100%;
    position: relative;
    height: 215px;
    flex-direction: column;
    border-radius: var(--Middle, 24px);
    background: var(--Main-Blue-200, #e5f1ff);
    flex-shrink: 0;
}

.tools-anim-result-area__button {
    padding: 4px 10px;
    justify-content: center;
    height: 40px;
    width: 116px;
    display: flex;
    align-items: center;
}

.tools-anim-result-area__button span {
    color: var(--Main-Blue-900, #031d3d);
    font-family: "League Spartan";
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    padding: 4px 10px 0 10px;
    line-height: 100%;
}

.tools-anim-result-area__text {
    color: var(--Gray-800, #30374f);
    font-family: "League Spartan";
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    font-size: 15px;
}

.tools-anim-result-area__text span {
    font-weight: 700;
    font-size: 16px;
}

.tools-slide__content.tools-nofollow_dofollow {
    padding: 0;
    overflow: hidden;
    background: var(--Main-Blue-300, #c6e1ff);
}

.tools-slide__content.tools-nofollow_dofollow .nofollow_dofollow__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* Media queries */
@media (min-width: 1780px) {
  .tools-slide:first-child {
        margin-left: calc((100vw - 1655px) / 2);
  }

  .tools-slide:nth-child(3) {
        margin-right: calc((100vw - 1655px) / 2);
  }
}

@media (min-width: 1280px) and (max-width: 1780px) {
  .tools-slide:first-child {
        margin-left: 70px;
  }

  .tools-slide:nth-child(3) {
        margin-right: 70px;
  }
}

@media (min-width: 768px) {
  .tools__slide {
        max-height: 650px;
  }
}

@media (min-width: 510px) {
    .tools-anim.option-1 .tools-anim-result-area__button {
        right: 14px;
        top: 12px;
        position: absolute;
    }

    .tools-anim.option-1 .tools-anim-result-area {
        padding: 66px 14px 10px 32px;
    }

    .tools-anim.option-1 .tools-anim-result-area__text {
        font-size: 16px !important;
    }

    .tools-anim.option-2 .tools-anim-result-area__button {
        right: 14px;
        top: 26px;
        position: absolute;
    }

    .tools-anim.option-2 .tools-anim-result-area {
        padding: 32px 14px 42px 32px;
    }

    .tools-anim.option-3 .tools-anim-result-area__button {
        right: 1px;
        top: 21px;
        position: absolute;
    }

    .tools-anim.option-3 .tools-anim-result-area {
        padding: 21px 14px 14px 32px;
    }

    .tools-anim.option-3 .tools-anim-result-area__text {
        font-size: 16px !important;
    }

    .tools-anim-result__title {
        margin-left: -3px;
        margin-bottom: 14px;
    }

    .tools-anim-result-area__button {
        position: absolute;
    }
}

@media (max-width: 1585px) {
    .hero__title {
        font-size: 40px;
    }

    .hero__text {
        font-size: 18px;
    }

    #meta_about h2,
    #meta_why h2 {
        font-size: 48px;
    }

    #meta_about_right {
        width: 360px;
    }
}

@media (max-width: 1460px) {
    .hero {
        padding: 70px 100px 100px 100px;
    }

    .tools__container {
        padding: 0 100px;
    }

    #meta_about,
    #meta_why {
        padding-left: 100px;
        padding-right: 100px;
    }

    #meta_focus {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 1280px) {
    .hero__header {
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        padding: 60px 70px 80px 70px;
    }

    .hero__title {
        font-size: 40px;
    }

    #meta_about,
    #meta_why {
        padding-left: 70px;
        padding-right: 70px;
    }

    #meta_focus {
        padding-left: 70px;
        padding-right: 70px;
    }

    .tools {
        margin-bottom: 110px;
        padding-top: 60px;
    }

    .tools__container {
        padding: 0 70px;
        text-align: center;
    }

    .tools__swiper {
        max-width: 100%;
        padding: 0 40px;
    }

    .tools__swiper-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .tools__label span:nth-child(1) {
        display: none;
    }

    .tools__label span:nth-child(2) {
        display: block;
    }

    .tools__title span:nth-child(1) {
        display: none;
    }

    .tools__title span:nth-child(2) {
        display: block;
    }

    .tools__slide:nth-child(1) {
        order: 1;
    }

    .tools__slide:nth-child(2) {
        order: 2;
    }

    .tools__slide:nth-child(3) {
        order: 3;
    }

    .tools__swiper-buttons {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero__title {
        font-size: 40px;
    }

    .hero__text {
        font-size: 22px;
    }

    .textarea {
        padding: 30px;
    }

    #meta_about_inner {
        flex-direction: column;
        gap: 40px;
    }

    #meta_about_right {
        width: 100%;
        max-width: 480px;
    }

    #meta_about h2,
    #meta_why h2 {
        font-size: 40px;
    }

    #meta_focus_inner {
        flex-direction: column;
        gap: 32px;
        padding: 40px;
    }

    #meta_focus h2 {
        font-size: 36px;
    }

    #meta_focus_right {
        width: 100%;
    }

    #meta_about,
    #meta_why {
        padding-left: 40px;
        padding-right: 40px;
    }

    #meta_focus {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 888px) {
    .hero {
        padding: 43px 40px 60px 40px;
    }

    .hero__title {
        font-size: 40px;
    }

    .how-it-works {
        padding: 37px 40px 80px 40px;
    }

    .tools__container {
        text-align: left;
        padding: 0 40px;
    }

    #meta_about,
    #meta_why {
        padding: 60px 40px;
    }

    #meta_focus {
        padding: 0 40px 60px;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 40px;
    }

    .textarea {
        padding: 20px;
    }

    #meta_about h2,
    #meta_why h2 {
        font-size: 34px;
        margin-bottom: 16px;
    }

    #meta_focus h2 {
        font-size: 30px;
    }

    #meta_focus_inner {
        padding: 32px 24px;
    }

    .meta_about_visual {
        padding: 24px;
    }

    .meta_why_item {
        padding: 20px 0;
    }

    .meta_why_text h3 {
        font-size: 19px;
    }

    .tools {
        margin-bottom: 80px;
    }

    .tools__container {
        padding: 0 36px;
    }

    .tools__title {
        margin-bottom: 36px;
        font-size: 40px;
        line-height: 118%;
    }

    .tools__slide {
        min-height: 580px;
        padding: 20px 16px 23px 16px;
    }

    .tools__slide:nth-child(4) {
        display: flex;
        order: 4;
    }

    .tools__slide:nth-child(4) .tools-slide__text {
        margin-bottom: 28px;
    }

    .tools-slide__content {
        padding: 10px;
    }

    .tools-slide__title {
        font-size: 22px;
        line-height: 140%;
    }

    .tools-slide__text {
        margin-bottom: 25px;
        font-size: 19px;
        line-height: 140%;
    }
}

@media (max-width: 510px) {
    
    .hero {
        padding: 40px 16px 24px 16px;
    }
    
    .hero__title {
        font-size: 34px;
    }

    #meta_about,
    #meta_why {
        padding: 48px 24px;
    }

    #meta_focus {
        padding: 0 24px 48px;
    }

    #meta_about_left > p,
    #meta_focus_left > p {
        font-size: 17px;
    }

    .meta_check_item span {
        font-size: 16px;
    }

    .meta_why_icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }


    .tools {
        padding: 60px 20px;
    }

    .tools__swiper {
        padding: 0;
    }

    .tools__container {
        padding: 0;
    }

    .tools-anim__wrapper {
        padding: 12px 9px 6px 9px;
    }

    .tools-anim__img {
        margin-top: 24px;
    }

    .tools-anim__loading {
        left: 50%;
        top: 50%;
        transform: translate(50%, 50%);
    }

    .tools-anim-result-area {
        padding: 12px 8px 12px 12px;
        border-radius: var(--Extra-small, 8px);
        height: 238px;
    }

    .tools-anim-result-area__button {
        margin-left: auto;
        width: 103px;
    }

    .tools-anim-result-area__button span {
        font-size: 18px;
        line-height: 100%;
    }

    /* Option-specific mobile tweaks */
    .tools-anim.option-1 .tools-anim-result-area__button {
        margin-bottom: 0;
    }

    .tools-anim.option-1 .tools-anim-result-area__text .mobile-hidden {
        display: none;
    }

    .tools-anim.option-2 .tools-anim-result-area__text {
        color: var(--Gray-800, #30374f);
        font-size: 14px;
        font-weight: 400;
        line-height: 110%;
    }

    .tools-anim.option-3 .tools-anim-result-area__text p:first-child {
        max-width: 240px;
    }

    .tools-anim.option-3 .tools-anim-result-area__text p:last-child {
        display: none;
    }
}

/* =============================================
   Readability Checker - tool-specific styles
   ============================================= */
.textarea__field-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.textarea__label { color: #fff; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.textarea__required { color: #ff8a3b; }
.textarea__field { height: 280px; border: 0; outline: none; resize: none; border-radius: 16px; padding: 22px 28px; box-sizing: border-box; font-size: 16px; line-height: 1.6; color: #031d3d; background: #fff; width: 100%; }
.textarea__field--error { outline: 2px solid #ff5a5a !important; }
.textarea__loading { display: none; justify-content: center; align-items: center; margin-top: 20px; }
.textarea__loading--visible { display: flex; }
.textarea__spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.2); border-top-color: #ff8a3b; border-radius: 50%; animation: tspin 0.8s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }
.textarea__button--disabled { opacity: 0.6; pointer-events: none; }
.tool-result { display: none; margin-top: 32px; background: #fff; border-radius: 24px; padding: 28px 30px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.tool-result--visible { display: block; }
.tool-result__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #e5e9f2; flex-wrap: wrap; gap: 14px; }
.tool-result__title { margin: 0; font-size: 22px; font-weight: 700; color: #031d3d; }
.tool-result__copy { display: inline-flex; align-items: center; gap: 8px; background: #031d3d; color: #fff; border: 0; padding: 10px 18px; border-radius: 200px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tool-result__copy:hover { background: #10335F; }

.rd-overall { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px; background: #f6f8fb; border-radius: 18px; margin-bottom: 22px; }
.rd-circle { width: 200px; height: 200px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(#16b364 0deg, #eef1f6 0deg); }
.rd-circle__inner { width: 160px; height: 160px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rd-circle__num { font-size: 42px; font-weight: 700; color: #031d3d; line-height: 1; }
.rd-circle__label { font-size: 12px; color: #7f88a2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.rd-grade { font-size: 22px; font-weight: 700; color: #031d3d; margin-bottom: 6px; }
.rd-overall__text { color: #4a5578; font-size: 15px; line-height: 1.5; }

.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.rd-stat { background: #f6f8fb; border-radius: 14px; padding: 14px 16px; }
.rd-stat__label { font-size: 11px; font-weight: 600; color: #7f88a2; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.rd-stat__value { font-size: 20px; font-weight: 700; color: #031d3d; }

.rd-formulas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.rd-formula { background: #f6f8fb; border-radius: 14px; padding: 16px 18px; }
.rd-formula__name { font-size: 12px; font-weight: 700; color: #7f88a2; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.rd-formula__row { display: flex; justify-content: space-between; align-items: baseline; }
.rd-formula__score { font-size: 22px; font-weight: 700; color: #031d3d; }
.rd-formula__grade { font-size: 13px; color: #4a5578; }

.rd-section__title { font-size: 14px; font-weight: 700; color: #031d3d; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.rd-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #f6f8fb; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.rd-item__icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rd-item.good .rd-item__icon { background: #def7e6; color: #16a34a; }
.rd-item.warn .rd-item__icon { background: #fff4e1; color: #d97706; }
.rd-item.bad .rd-item__icon { background: #fee2e2; color: #dc2626; }
.rd-item.tip .rd-item__icon { background: #dbeafe; color: #2563eb; }

.tool-result__error { display: none; color: #d63638; font-size: 14px; padding: 8px 0; }
.tool-result__error--visible { display: block; }

/* Fetch URL row */
.rd-fetch-wrap { margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.rd-fetch-label { display: block; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rd-fetch-sub { color: rgba(255,255,255,0.55); font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.rd-fetch-row { display: flex; gap: 10px; align-items: stretch; }
/* Base input style: the prototype relied on tool_common.css for this, which the theme does not enqueue for ported tools. */
.textarea__input { width: 100%; height: 56px; border: 0; outline: none; border-radius: 16px; padding: 0 24px; box-sizing: border-box; font-size: 16px; color: #031d3d; background: #fff; }
.textarea__input::placeholder { color: #7f88a2; }
.rd-fetch-row .textarea__input { flex: 1; min-width: 0; height: 50px; }
.rd-fetch-btn { flex-shrink: 0; height: 50px; padding: 0 20px; border-radius: 14px; border: 0; background: #077DFD; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rd-fetch-btn:hover { background: #0668d4; }
.rd-fetch-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.rd-fetch-btn .rd-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: rd-spin 0.7s linear infinite; }
.rd-fetch-btn.loading .rd-spin { display: inline-block; }
.rd-fetch-btn.loading svg { display: none; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-fetch-status { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.6); min-height: 16px; }
.rd-fetch-status.bad { color: #ff7a7a; }
.rd-fetch-status.good { color: #5be584; }
.rd-or-divider { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.35); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 14px; text-transform: uppercase; }
.rd-or-divider::before, .rd-or-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }

.hero__title { font-weight: 700 !important; }
/* Fix: tool_common.css forces .tool-result__copy-text to dark; override for our dark button */
.tool-result__copy { background: #031d3d !important; color: #fff !important; border: 0 !important; }
.tool-result__copy:hover { background: #10335F !important; border-color: #10335F !important; }
.tool-result__copy-text { color: #fff !important; }
.tool-result__copy svg path { stroke: #fff !important; }
@media (max-width: 768px) {
    .rd-overall { grid-template-columns: 1fr; text-align: center; }
    .rd-circle { margin: 0 auto; }
    .rd-stats, .rd-formulas { grid-template-columns: repeat(2, 1fr); }
}