/* AI Form Builder landing page. All product styles are scoped to .rf-ai-page. */

.rf-ai-page {
    --rf-ai-ink: var(--rf-ink);
    --rf-ai-muted: var(--rf-muted);
    --rf-ai-blue: var(--rf-brand);
    --rf-ai-blue-dark: var(--rf-brand-dark);
    --rf-ai-line: var(--rf-line);
    --rf-ai-soft: var(--rf-surface-2);
    color: var(--rf-ai-ink);
    background: #ffffff;
    overflow: hidden;
}

.rf-ai-page,
.rf-ai-page * {
    box-sizing: border-box;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-ai-page a {
    color: inherit;
    text-decoration: none;
}

.rf-ai-page button {
    font: inherit;
}

.rf-ai-page button,
.rf-ai-page a,
.rf-ai-page summary {
    -webkit-tap-highlight-color: transparent;
}

.rf-ai-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.rf-ai-page h1,
.rf-ai-page h2,
.rf-ai-page h3,
.rf-ai-page p,
.rf-ai-page blockquote {
    margin-top: 0;
}

.rf-ai-page [id] {
    scroll-margin-top: 150px;
}

.rf-ai-container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.rf-ai-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.rf-ai-primary,
.rf-ai-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #ffffff !important;
    background: var(--rf-ai-blue);
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.25);
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rf-ai-primary:hover,
.rf-ai-secondary:hover {
    box-shadow: 0 14px 32px rgba(24, 119, 242, 0.22);
    transform: translateY(-2px);
}

.rf-ai-primary:hover {
    background: var(--rf-ai-blue-dark);
}

.rf-ai-primary:focus-visible,
.rf-ai-secondary:focus-visible,
.rf-ai-page button:focus-visible,
.rf-ai-page a:focus-visible,
.rf-ai-page summary:focus-visible,
.rf-ai-page details:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.42);
    outline-offset: 4px;
}

.rf-ai-primary:disabled {
    color: #7c8592 !important;
    background: #eef1f5;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.rf-ai-secondary {
    border-color: var(--rf-ai-line);
    color: var(--rf-ai-ink) !important;
    background: #ffffff;
    box-shadow: none;
}

/* Hero */

.rf-ai-hero {
    position: relative;
    padding: 190px 0 72px;
    background: linear-gradient(180deg, var(--rf-brand-light) 0%, var(--rf-bg) 72%, #ffffff 100%);
}

.rf-ai-hero::before {
    position: absolute;
    top: -300px;
    right: -260px;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 119, 242, 0.17) 0, rgba(24, 119, 242, 0.05) 50%, transparent 71%);
    content: "";
    pointer-events: none;
}

.rf-ai-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rf-ai-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 17px;
    border: 1px solid #bfd7ff;
    border-radius: 999px;
    color: var(--rf-brand-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.rf-ai-hero h1 {
    max-width: 920px;
    margin: 25px auto 24px;
    color: var(--rf-ai-ink);
    font-size: clamp(50px, 7.2vw, 82px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.058em;
    text-wrap: balance;
}

.rf-ai-hero h1 span {
    color: var(--rf-ai-blue);
}

.rf-ai-hero-copy {
    max-width: 820px;
    margin: 0 auto 34px;
    color: #424b5a;
    font-size: clamp(18px, 2.1vw, 21px);
    line-height: 1.62;
}

.rf-ai-composer {
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--rf-ai-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--rf-shadow-lg);
    text-align: left;
}

.rf-ai-composer textarea {
    display: block;
    width: 100%;
    min-height: 168px;
    padding: 28px 30px 20px;
    border: 0;
    outline: 0;
    resize: vertical;
    color: var(--rf-ai-ink);
    background: transparent;
    font-size: 18px;
    line-height: 1.6;
}

.rf-ai-composer textarea::placeholder {
    color: #8a94a3;
}

.rf-ai-composer textarea:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(24, 119, 242, 0.18);
}

.rf-ai-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.rf-ai-composer-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    margin: 0 22px;
    padding: 17px 8px 22px;
    border-top: 1px solid var(--rf-ai-line);
}

.rf-ai-key-hint {
    color: #8b94a1;
    font-size: 12px;
}

.rf-ai-key-hint kbd {
    min-width: 21px;
    padding: 2px 5px;
    border: 1px solid #d8dee8;
    border-bottom-width: 2px;
    border-radius: 5px;
    color: #5c6675;
    background: #f7f9fc;
    font: inherit;
    font-weight: 700;
}

.rf-ai-count {
    color: #7b8594;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.rf-ai-count b {
    color: inherit;
    font-weight: 700;
}

.rf-ai-composer .rf-ai-primary {
    min-height: 48px;
    box-shadow: none;
}

.rf-ai-composer .rf-ai-primary:hover {
    box-shadow: none;
    transform: translateY(-1px);
}

.rf-ai-form-error {
    margin: -6px 30px 22px;
    padding: 11px 13px;
    border: 1px solid #f0b6b6;
    border-radius: 10px;
    color: #8b2424;
    background: #fff5f5;
    font-size: 13px;
    line-height: 1.45;
}

.rf-ai-suggestions {
    max-width: 880px;
    margin: 27px auto 0;
}

.rf-ai-suggestions > span {
    display: block;
    margin-bottom: 10px;
    color: #666f7e;
    font-size: 13px;
    font-weight: 600;
}

.rf-ai-suggestions > div {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rf-ai-suggestions button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid rgba(23, 32, 51, 0.24);
    border-radius: 999px;
    color: #4e5868;
    background: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.rf-ai-suggestions button:hover {
    border-color: #8cbcff;
    color: var(--rf-brand-dark);
    background: #ffffff;
}

.rf-ai-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: #4c5665;
    font-size: 12px;
    font-weight: 600;
}

.rf-ai-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rf-ai-trust i {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #116246;
    background: var(--rf-green-light);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

/* Proof strip */

.rf-ai-proof {
    color: #ffffff;
    background: var(--rf-ai-ink);
}

.rf-ai-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.rf-ai-proof-grid > div {
    min-height: 132px;
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.rf-ai-proof-grid > div:last-child {
    border-right: 0;
}

.rf-ai-proof strong,
.rf-ai-proof span {
    display: block;
}

.rf-ai-proof strong {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 780;
    letter-spacing: -0.035em;
}

.rf-ai-proof span {
    color: #b9c4d5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Editorial layout */

.rf-ai-content-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 70px;
    padding-top: 96px;
    padding-bottom: 40px;
}

.rf-ai-toc {
    position: sticky;
    top: 145px;
    padding: 24px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.08);
}

.rf-ai-toc > strong {
    display: block;
    margin-bottom: 16px;
    color: var(--rf-ai-ink);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rf-ai-toc nav {
    display: grid;
    height: auto;
    gap: 3px;
}

.rf-ai-toc nav a {
    display: block;
    padding: 8px 0;
    color: #697484;
    font-size: 13px;
    line-height: 1.35;
    transition: color 0.18s ease, transform 0.18s ease;
}

.rf-ai-toc nav a:hover,
.rf-ai-toc nav a.is-active {
    color: var(--rf-ai-blue);
    transform: translateX(3px);
}

.rf-ai-toc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--rf-ai-line);
    color: var(--rf-ai-blue) !important;
    font-size: 13px;
    font-weight: 700;
}

.rf-ai-article {
    min-width: 0;
}

.rf-ai-copy-section {
    padding: 0 0 108px;
}

.rf-ai-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    color: #647083;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rf-ai-section-label::before {
    width: 28px;
    height: 1px;
    background: #9da8b7;
    content: "";
}

.rf-ai-copy-section h2 {
    max-width: 820px;
    margin-bottom: 22px;
    color: var(--rf-ai-ink);
    font-size: clamp(38px, 5.1vw, 56px);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.048em;
    text-wrap: balance;
}

.rf-ai-copy-section h3 {
    color: var(--rf-ai-ink);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.rf-ai-copy-section p {
    color: var(--rf-ai-muted);
    font-size: 16px;
    line-height: 1.78;
}

.rf-ai-copy-section > p {
    max-width: 760px;
}

.rf-ai-copy-section .rf-ai-lead {
    margin-bottom: 20px;
    color: #3e4858;
    font-size: clamp(18px, 2.1vw, 21px);
    line-height: 1.7;
}

.rf-ai-note {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 17px;
    margin-top: 35px;
    padding: 25px;
    border: 1px solid #c7dcfb;
    border-radius: 20px;
    background: var(--rf-brand-light);
    box-shadow: var(--rf-shadow-sm);
}

.rf-ai-note > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #bfd7ff;
    border-radius: 14px;
    color: var(--rf-brand);
    background: #ffffff;
    font-size: 22px;
}

.rf-ai-note strong {
    display: block;
    margin: 2px 0 6px;
    font-size: 18px;
}

.rf-ai-note p {
    margin: 0;
    color: #4c5666;
}

/* Steps and builder */

.rf-ai-step-list {
    display: grid;
    margin: 38px 0 40px;
    border-top: 1px solid var(--rf-ai-line);
}

.rf-ai-step-list article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;
    padding: 27px 6px;
    border-bottom: 1px solid var(--rf-ai-line);
}

.rf-ai-step-list article > span {
    color: var(--rf-brand);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rf-ai-step-list h3 {
    margin-bottom: 8px;
}

.rf-ai-step-list p {
    max-width: 670px;
    margin: 0;
}

.rf-ai-builder-shot {
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--rf-shadow-lg);
}

.rf-ai-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
    margin: -12px -12px 12px;
    border-bottom: 1px solid var(--rf-ai-line);
    background: var(--rf-surface-2);
}

.rf-ai-window-bar span {
    width: 9px;
    height: 9px;
    border: 1px solid #bdd5f6;
    border-radius: 50%;
    background: #ffffff;
}

.rf-ai-window-bar span:first-child {
    background: var(--rf-brand);
}

.rf-ai-window-bar b {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rf-ai-builder-shot img {
    width: 100%;
    border-radius: 18px;
}

/* Cards */

.rf-ai-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 38px;
}

.rf-ai-card {
    min-height: 236px;
    padding: 28px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 24px;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rf-ai-card:nth-child(3n + 1) {
    background: #ffffff;
}

.rf-ai-card:nth-child(3n + 2) {
    background: #ffffff;
}

.rf-ai-card:nth-child(3n + 3) {
    background: #ffffff;
}

.rf-ai-card:hover {
    border-color: #afcfff;
    box-shadow: var(--rf-shadow-sm);
    transform: translateY(-5px);
}

.rf-ai-card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    place-items: center;
    border: 0;
    border-radius: 15px;
    color: var(--rf-brand);
    background: var(--rf-brand-light);
    font-size: 21px;
    font-weight: 800;
}

.rf-ai-card h3 {
    margin-bottom: 9px;
}

.rf-ai-card p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
}

.rf-ai-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 38px;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.rf-ai-benefit-grid article {
    min-height: 230px;
    padding: 30px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 24px;
    background: #ffffff;
}

.rf-ai-benefit-grid article:nth-child(2n) {
    border-right: 1px solid var(--rf-ai-line);
}

.rf-ai-benefit-grid article:nth-child(n + 3) {
    border-bottom: 1px solid var(--rf-ai-line);
}

.rf-ai-benefit-grid article > span {
    display: block;
    margin-bottom: 34px;
    color: var(--rf-ai-blue);
    font-size: 30px;
}

.rf-ai-benefit-grid h3 {
    margin-bottom: 8px;
}

.rf-ai-benefit-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.rf-ai-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 25px;
    padding: 25px 28px;
    border-radius: 15px;
    color: #ffffff;
    background: var(--rf-ai-ink);
}

.rf-ai-inline-cta span,
.rf-ai-inline-cta strong {
    display: block;
}

.rf-ai-inline-cta span {
    margin-bottom: 4px;
    color: #aebbd0;
    font-size: 12px;
}

.rf-ai-inline-cta strong {
    color: #ffffff;
    font-size: 17px;
}

.rf-ai-inline-cta a {
    flex: 0 0 auto;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
}

/* Industries */

.rf-ai-industry-list {
    display: grid;
    margin-top: 38px;
    border-top: 1px solid var(--rf-ai-line);
}

.rf-ai-industry-list article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rf-ai-line);
}

.rf-ai-industry-list article > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--rf-brand);
    background: var(--rf-brand-light);
    font-size: 13px;
    font-weight: 800;
}

.rf-ai-industry-list h3 {
    margin-bottom: 8px;
}

.rf-ai-industry-list p {
    max-width: 650px;
    margin: 0;
}

/* Feature board */

.rf-ai-feature-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.rf-ai-feature-board article {
    min-height: 235px;
    padding: 26px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 24px;
    background: #ffffff;
}

.rf-ai-feature-board article:nth-child(2),
.rf-ai-feature-board article:nth-child(5) {
    background: #ffffff;
}

.rf-ai-feature-board article:nth-child(3),
.rf-ai-feature-board article:nth-child(4) {
    background: #ffffff;
}

.rf-ai-feature-board b {
    display: block;
    margin-bottom: 40px;
    color: var(--rf-ai-blue);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.rf-ai-feature-board h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.rf-ai-feature-board p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Prompt guidance */

.rf-ai-prompt-compare {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 16px;
    margin-top: 38px;
}

.rf-ai-prompt-compare article {
    min-height: 260px;
    padding: 27px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 20px;
}

.rf-ai-prompt-compare .is-weak {
    background: var(--rf-surface-2);
}

.rf-ai-prompt-compare .is-strong {
    border-color: #bfd7ff;
    background: var(--rf-brand-light);
    box-shadow: var(--rf-shadow-sm);
}

.rf-ai-prompt-compare article > span {
    display: inline-block;
    margin-bottom: 22px;
    color: #6f7988;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.rf-ai-prompt-compare blockquote {
    margin-bottom: 20px;
    color: var(--rf-ai-ink);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.5;
}

.rf-ai-prompt-compare p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.rf-ai-checklist {
    display: grid;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.rf-ai-checklist li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--rf-ai-line);
    border-radius: 13px;
    background: #ffffff;
}

.rf-ai-checklist i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #0f6949;
    background: var(--rf-green-light);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.rf-ai-checklist strong,
.rf-ai-checklist span {
    display: block;
}

.rf-ai-checklist strong {
    margin-bottom: 4px;
    color: var(--rf-ai-ink);
    font-size: 16px;
}

.rf-ai-checklist span {
    color: var(--rf-ai-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* FAQ */

.rf-ai-faq-list {
    margin-top: 36px;
    border-top: 1px solid var(--rf-ai-line);
}

.rf-ai-faq details {
    border-bottom: 1px solid var(--rf-ai-line);
}

.rf-ai-faq summary {
    display: grid;
    grid-template-columns: 1fr 34px;
    align-items: center;
    gap: 20px;
    padding: 23px 4px;
    color: var(--rf-ai-ink);
    font-size: 18px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

.rf-ai-faq summary span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--rf-brand);
    background: var(--rf-brand-light);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.18s ease, background 0.18s ease;
}

.rf-ai-faq details[open] summary span {
    background: var(--rf-surface-3);
    transform: rotate(45deg);
}

.rf-ai-faq details p {
    max-width: 720px;
    margin: -5px 0 25px;
    padding-right: 50px;
}

/* Final CTA */

.rf-ai-final {
    padding: 35px 0 110px;
}

.rf-ai-final-card {
    position: relative;
    overflow: hidden;
    padding: 76px 40px;
    border: 0;
    border-radius: 34px;
    color: #ffffff;
    background: var(--rf-ai-blue);
    box-shadow: none;
    text-align: center;
}

.rf-ai-final-card::before,
.rf-ai-final-card::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.rf-ai-final-card::before {
    top: -100px;
    left: -80px;
    width: 260px;
    height: 260px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.rf-ai-final-card::after {
    right: -40px;
    bottom: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.rf-ai-final-card > * {
    position: relative;
    z-index: 1;
}

.rf-ai-final .rf-ai-pill {
    color: var(--rf-brand-dark);
    background: #ffffff;
}

.rf-ai-final h2 {
    max-width: 850px;
    margin: 25px auto 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.052em;
}

.rf-ai-final p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: #dceaff;
    font-size: 18px;
    line-height: 1.65;
}

.rf-ai-final-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}

.rf-ai-final .rf-ai-primary {
    color: var(--rf-ai-ink) !important;
    background: #ffffff;
    box-shadow: none;
}

.rf-ai-final .rf-ai-secondary {
    color: var(--rf-ai-ink) !important;
}

.rf-ai-final small {
    display: block;
    margin-top: 24px;
    color: #cfe0fb;
    font-size: 12px;
}

/* Generated form modal */

body.rf-ai-modal-open {
    overflow: hidden;
}

.rf-ai-modal[hidden],
.rf-ai-modal [hidden] {
    display: none !important;
}

.rf-ai-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.rf-ai-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 45, 0.66);
    backdrop-filter: blur(8px);
}

.rf-ai-modal-dialog {
    position: relative;
    display: flex;
    width: min(1040px, 100%);
    height: min(720px, calc(100vh - 48px));
    height: min(720px, calc(100dvh - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    flex-direction: column;
    border: 0;
    border-radius: 20px;
    outline: 0;
    color: #1e293b;
    background: #f0f6ff;
    box-shadow: 0 34px 100px rgba(15, 32, 60, 0.3);
}

.rf-ai-modal-dialog,
.rf-ai-modal-dialog * {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-ai-modal-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rf-ai-use-form {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #0f58b8;
    box-shadow: 0 4px 12px rgba(15, 88, 184, 0.22);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.rf-ai-skip-validation {
    display: flex;
    min-height: 46px;
    padding: 0 14px;
    align-items: center;
    gap: 9px;
    border: 1px solid #d5e3f5;
    border-radius: 8px;
    color: #475569;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(15, 32, 60, 0.08);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.rf-ai-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    padding: 0;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: #b8c4d3;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rf-ai-toggle-switch > span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 32, 60, 0.24);
    transition: transform 0.2s ease;
}

.rf-ai-toggle-switch.is-active {
    background: #0f58b8;
}

.rf-ai-toggle-switch.is-active > span {
    transform: translateX(16px);
}

.rf-ai-modal-close {
    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #d5e3f5;
    border-radius: 50%;
    color: #475569;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(15, 32, 60, 0.08);
    cursor: pointer;
}

.rf-ai-modal-close svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.rf-ai-modal-close:hover {
    color: #172033;
    background: #ffffff;
}

.rf-ai-use-form:hover {
    background: #0b4c9e;
}

.rf-ai-use-form:disabled {
    opacity: 0.7;
    cursor: wait;
}

.rf-ai-modal-loading {
    display: grid;
    min-height: 0;
    padding: 50px 24px;
    place-items: center;
    align-content: center;
    flex: 1 1 auto;
    background: #f0f6ff;
    text-align: center;
}

.rf-ai-modal-loading strong {
    display: block;
    margin: 20px 0 7px;
    color: #1e293b;
    font-size: 21px;
}

.rf-ai-modal-loading p {
    max-width: 430px;
    margin: 0;
    color: #374151;
    font-size: 14px;
}

.rf-ai-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #dceaff;
    border-top-color: var(--rf-ai-blue);
    border-radius: 50%;
    animation: rf-ai-spin 0.8s linear infinite;
}

@keyframes rf-ai-spin {
    to {
        transform: rotate(360deg);
    }
}

.rf-ai-modal-content {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    background: #f0f6ff;
}

.rf-ai-public-content {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 41, 59, 0.3) transparent;
}

.rf-ai-scroll-panel {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    padding: 40px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.rf-ai-scroll-panel .rf-ai-preview-question {
    margin: auto;
}

.rf-ai-scroll-panel.rf-ai-exit-up {
    animation: rf-ai-panel-exit-up 0.5s cubic-bezier(0.4, 0, 0, 1) forwards;
}

.rf-ai-scroll-panel.rf-ai-exit-down {
    animation: rf-ai-panel-exit-down 0.5s cubic-bezier(0.4, 0, 0, 1) forwards;
}

.rf-ai-preview-question.rf-ai-enter-up,
.rf-ai-preview-question.rf-ai-enter-down {
    opacity: 0;
    pointer-events: none;
    animation: rf-ai-panel-enter 0.7s ease 0.45s forwards;
}

@keyframes rf-ai-panel-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rf-ai-panel-exit-up {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

@keyframes rf-ai-panel-exit-down {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.rf-ai-preview-question {
    position: relative;
    width: min(700px, 100%);
    margin: auto;
    padding: 60px;
    color: #1e293b;
}

.rf-ai-preview-question:focus {
    outline: 0;
}

.rf-ai-public-title {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.rf-ai-public-description {
    margin: 0 0 32px;
    color: #374151;
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-line;
}

.rf-ai-required {
    color: #ef4444;
}

.rf-ai-mock-input,
.rf-ai-mock-select,
.rf-ai-mock-textarea {
    width: 100%;
    min-height: 58px;
    padding: 16px 0;
    border: 0;
    border-bottom: 2px solid #294974;
    border-radius: 0;
    outline: 0;
    color: #374151;
    background: transparent;
    font-size: 20px;
    line-height: 1.3;
}

.rf-ai-mock-textarea {
    min-height: 116px;
    resize: vertical;
}

.rf-ai-mock-input::placeholder,
.rf-ai-mock-textarea::placeholder {
    color: #374151;
    opacity: 1;
}

.rf-ai-mock-input:focus,
.rf-ai-mock-select:focus,
.rf-ai-mock-textarea:focus {
    border-bottom-color: #0f58b8;
    box-shadow: none;
}

.rf-ai-mock-stack {
    display: grid;
    gap: 14px;
}

.rf-ai-choice-grid {
    display: grid;
    gap: 12px;
}

.rf-ai-choice {
    display: flex;
    min-height: 52px;
    padding: 13px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid #294974;
    border-radius: 0;
    color: #1e293b;
    background: transparent;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.rf-ai-choice:hover,
.rf-ai-choice.is-selected {
    border-color: #0f58b8;
    background: rgba(15, 88, 184, 0.08);
}

.rf-ai-choice i {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(15, 88, 184, 0.45);
    border-radius: 3px;
    color: #0f58b8;
    background: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.rf-ai-scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rf-ai-scale button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid #294974;
    border-radius: 0;
    color: #1e293b;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.rf-ai-scale button:hover,
.rf-ai-scale button.is-selected {
    border-color: #0f58b8;
    color: #ffffff;
    background: #0f58b8;
}

.rf-ai-mock-upload,
.rf-ai-mock-signature {
    display: grid;
    min-height: 116px;
    padding: 20px;
    place-items: center;
    border: 1px dashed #294974;
    border-radius: 0;
    color: #374151;
    background: rgba(255, 255, 255, 0.26);
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.rf-ai-mock-signature {
    align-items: end;
}

.rf-ai-mock-signature::after {
    width: min(330px, 80%);
    height: 1px;
    background: #294974;
    content: "";
}

.rf-ai-public-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 32px;
}

.rf-ai-preview-question.is-align-center .rf-ai-public-title,
.rf-ai-preview-question.is-align-center .rf-ai-public-description {
    text-align: center;
}

.rf-ai-preview-question.is-align-center .rf-ai-public-actions {
    justify-content: center;
}

.rf-ai-preview-question.is-align-right .rf-ai-public-title,
.rf-ai-preview-question.is-align-right .rf-ai-public-description {
    text-align: right;
}

.rf-ai-preview-question.is-align-right .rf-ai-public-actions {
    justify-content: flex-end;
}

.rf-ai-public-action {
    min-width: 92px;
    min-height: 48px;
    padding: 14px 28px;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: #0f58b8;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.rf-ai-public-action:disabled {
    background: rgba(15, 88, 184, 0.42);
    cursor: not-allowed;
}

.rf-ai-keyboard-hint {
    margin-left: 16px;
    color: #374151;
    font-size: 12px;
}

.rf-ai-public-nav {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    z-index: 2;
    gap: 8px;
}

.rf-ai-public-nav button {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.rf-ai-public-nav button:hover:not(:disabled) {
    background: #ffffff;
}

.rf-ai-public-nav button:disabled {
    color: #9aa4b2;
    opacity: 0.55;
    cursor: not-allowed;
}

.rf-ai-public-nav svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1060px) {
    .rf-ai-hero::before,
    .rf-ai-hero::after {
        display: none;
    }

    .rf-ai-content-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 42px;
    }

    .rf-ai-feature-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .rf-ai-hero {
        padding-top: 164px;
    }

    .rf-ai-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rf-ai-proof-grid > div:nth-child(2) {
        border-right: 0;
    }

    .rf-ai-proof-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .rf-ai-content-layout {
        display: block;
        padding-top: 72px;
    }

    .rf-ai-toc {
        position: relative;
        top: auto;
        margin-bottom: 75px;
    }

    .rf-ai-toc nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px 24px;
    }

    .rf-ai-copy-section {
        padding-bottom: 88px;
    }

    .rf-ai-modal {
        padding: 18px;
    }

    .rf-ai-modal-dialog {
        max-height: calc(100vh - 36px);
        height: min(720px, calc(100vh - 36px));
        height: min(720px, calc(100dvh - 36px));
    }
}

@media (max-width: 680px) {
    .rf-ai-container {
        width: min(calc(100% - 30px), 1180px);
    }

    .rf-ai-page [id] {
        scroll-margin-top: 120px;
    }

    .rf-ai-hero {
        padding: 144px 0 55px;
    }

    .rf-ai-hero h1 {
        margin-top: 20px;
        font-size: clamp(42px, 13vw, 62px);
        line-height: 0.99;
    }

    .rf-ai-hero-copy {
        font-size: 17px;
        line-height: 1.6;
    }

    .rf-ai-composer {
        border-radius: 18px;
        box-shadow: var(--rf-shadow-lg);
    }

    .rf-ai-composer textarea {
        min-height: 178px;
        padding: 22px 20px 16px;
        font-size: 16px;
    }

    .rf-ai-composer-footer {
        grid-template-columns: 1fr auto;
        gap: 12px;
        margin: 0 14px;
        padding: 15px 5px 18px;
    }

    .rf-ai-key-hint {
        display: none;
    }

    .rf-ai-count {
        justify-self: start;
    }

    .rf-ai-composer .rf-ai-primary {
        min-height: 48px;
        padding-inline: 16px;
        font-size: 14px;
    }

    .rf-ai-trust {
        align-items: flex-start;
        flex-direction: column;
        width: max-content;
        max-width: 100%;
        margin: 24px auto 0;
        gap: 10px;
        text-align: left;
    }

    .rf-ai-proof-grid > div {
        min-height: 112px;
        padding: 23px 12px;
    }

    .rf-ai-proof strong {
        font-size: 23px;
    }

    .rf-ai-toc {
        padding: 20px;
    }

    .rf-ai-toc nav {
        grid-template-columns: 1fr;
    }

    .rf-ai-copy-section h2 {
        font-size: clamp(35px, 11vw, 48px);
    }

    .rf-ai-note {
        grid-template-columns: 1fr;
        padding: 21px;
    }

    .rf-ai-step-list article,
    .rf-ai-industry-list article {
        grid-template-columns: 52px 1fr;
        gap: 14px;
    }

    .rf-ai-step-list article > span {
        font-size: 23px;
    }

    .rf-ai-card-grid,
    .rf-ai-benefit-grid,
    .rf-ai-feature-board,
    .rf-ai-prompt-compare {
        grid-template-columns: 1fr;
    }

    .rf-ai-card {
        min-height: 210px;
    }

    .rf-ai-benefit-grid article,
    .rf-ai-benefit-grid article:nth-child(2n),
    .rf-ai-benefit-grid article:nth-child(n + 3) {
        border: 1px solid var(--rf-ai-line);
    }

    .rf-ai-benefit-grid article:last-child {
        border-bottom: 1px solid var(--rf-ai-line);
    }

    .rf-ai-inline-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .rf-ai-feature-board article {
        min-height: 190px;
    }

    .rf-ai-feature-board b {
        margin-bottom: 25px;
    }

    .rf-ai-prompt-compare {
        gap: 20px;
    }

    .rf-ai-prompt-compare article {
        min-height: 0;
    }

    .rf-ai-faq summary {
        font-size: 16px;
    }

    .rf-ai-faq details p {
        padding-right: 0;
    }

    .rf-ai-final {
        padding-bottom: 90px;
    }

    .rf-ai-final-card {
        padding: 55px 20px;
        border-radius: 20px;
        box-shadow: none;
    }

    .rf-ai-final h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .rf-ai-final-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rf-ai-final-actions a {
        width: 100%;
    }

    .rf-ai-modal {
        padding: 0;
    }

    .rf-ai-modal-dialog {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .rf-ai-modal-content {
        overflow: hidden;
    }

    .rf-ai-public-content {
        padding: 20px;
    }

    .rf-ai-scroll-panel {
        padding: 20px;
    }

    .rf-ai-modal-controls {
        top: 16px;
        right: 16px;
        left: 16px;
        justify-content: flex-end;
        gap: 8px;
    }

    .rf-ai-use-form {
        min-height: 42px;
        padding-inline: 15px;
        font-size: 13px;
    }

    .rf-ai-skip-validation {
        min-width: 42px;
        min-height: 42px;
        padding-inline: 10px;
    }

    .rf-ai-skip-validation > span:first-child {
        display: none;
    }

    .rf-ai-modal-close {
        width: 42px;
        height: 42px;
    }

    .rf-ai-preview-question {
        width: 100%;
        padding: 42px 18px 96px;
    }

    .rf-ai-public-title {
        font-size: 22px;
    }

    .rf-ai-public-description {
        font-size: 17px;
    }

    .rf-ai-public-nav {
        right: 16px;
        bottom: 16px;
    }

    .rf-ai-public-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rf-ai-keyboard-hint {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-ai-scroll-panel,
    .rf-ai-preview-question.rf-ai-enter-up,
    .rf-ai-preview-question.rf-ai-enter-down {
        animation: none;
    }

    .rf-ai-page *,
    .rf-ai-page *::before,
    .rf-ai-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .rf-ai-spinner {
        animation-duration: 1.8s;
    }
}
