@font-face {
    font-family: "ReFrameInter";
    src: url("/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --rf-bg: #0d0d0f;
    --rf-panel: #151518;
    --rf-panel-soft: #111114;
    --rf-line: #282832;
    --rf-line-soft: rgba(255, 255, 255, 0.08);
    --rf-text: #f4f4f5;
    --rf-muted: #9ca3af;
    --rf-dim: #6b7280;
    --rf-orange: #ff5f1f;
    --rf-green: #4ade80;
    --rf-amber: #fbbf24;
}

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

.rf-page {
    min-height: 100vh;
    margin: 0;
    background: var(--rf-bg);
    color: var(--rf-text);
    font-family: "ReFrameInter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-page a {
    color: inherit;
}

.rf-shell {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--rf-line);
    background: rgba(13, 13, 15, 0.96);
    backdrop-filter: blur(14px);
}

.rf-shell__inner {
    display: flex;
    min-height: 72px;
    width: min(100%, 1400px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
}

.rf-public-shell .rf-shell__inner {
    min-height: 64px;
}

.rf-public-shell .rf-shell__left:empty {
    flex: 1 1 auto;
}

.rf-shell--compact .rf-shell__inner {
    min-height: 56px;
    padding-inline: 0;
}

.rf-shell__left,
.rf-shell__right,
.rf-nav {
    display: flex;
    align-items: center;
}

.rf-shell__left {
    gap: 24px;
    min-width: 0;
}

.rf-shell__right {
    justify-content: flex-end;
    gap: 10px;
}

.rf-logo {
    display: block;
    width: 174px;
    height: 46px;
    flex: 0 0 auto;
    background: var(--rf-orange);
    filter: drop-shadow(0 0 8px rgba(255, 95, 31, 0.34));
    -webkit-mask-image: url("/assets/ReFrame.AI.svg");
    -webkit-mask-size: 100% auto;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-image: url("/assets/ReFrame.AI.svg");
    mask-size: 100% auto;
    mask-repeat: no-repeat;
    mask-position: center center;
}

.rf-shell--compact .rf-logo {
    width: 144px;
    height: 38px;
}

.rf-logo--small {
    width: 132px;
    height: 36px;
}

.rf-nav {
    gap: 4px;
    min-width: 0;
}

.rf-nav__link,
.rf-pill,
.rf-account-link,
.rf-button,
.rf-tab {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--rf-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.rf-nav__link:hover,
.rf-account-link:hover,
.rf-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--rf-text);
    background: rgba(255, 255, 255, 0.04);
}

.rf-nav__link.is-active,
.rf-tab.is-active {
    border-color: rgba(255, 95, 31, 0.45);
    color: var(--rf-orange);
    background: rgba(255, 95, 31, 0.08);
}

.rf-pill {
    border-color: var(--rf-line);
    color: var(--rf-muted);
    background: rgba(255, 255, 255, 0.02);
}

.rf-pill:hover {
    border-color: rgba(255, 95, 31, 0.55);
    color: var(--rf-orange);
}

.rf-credit-chip {
    gap: 7px;
}

.rf-credit-chip__ring {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 95, 31, 0.72);
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(255, 95, 31, 0.10);
}

.rf-credit-chip[data-has-reservation="true"] .rf-credit-chip__ring {
    border-color: var(--rf-amber);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.13);
}

.rf-context {
    max-width: 210px;
    color: var(--rf-orange);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.rf-account-link {
    border-color: var(--rf-line);
    color: var(--rf-text);
}

.rf-main {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.rf-landing-main {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.rf-page-title {
    margin: 0;
    color: var(--rf-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.rf-page-copy {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--rf-muted);
    font-size: 15px;
    line-height: 1.6;
}

.rf-kicker {
    margin-bottom: 10px;
    color: var(--rf-orange);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rf-grid {
    display: grid;
    gap: 18px;
}

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

.rf-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rf-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rf-card {
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: var(--rf-panel);
    padding: 20px;
}

.rf-card--soft {
    background: var(--rf-panel-soft);
}

.rf-card__label {
    margin-bottom: 10px;
    color: var(--rf-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rf-card__value {
    margin-top: 0;
    color: var(--rf-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.rf-card__value--small {
    font-size: 19px;
    line-height: 1.25;
}

.rf-card__copy {
    margin-top: 10px;
    color: var(--rf-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rf-card__cta {
    display: inline-flex;
    margin-top: 18px;
    color: var(--rf-orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.rf-actions--center {
    justify-content: center;
}

.rf-button {
    min-height: 40px;
    border-color: var(--rf-line);
    padding-inline: 14px;
    color: var(--rf-text);
    background: rgba(255, 255, 255, 0.03);
}

.rf-button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.rf-button--primary {
    border-color: rgba(255, 95, 31, 0.65);
    color: #09090b;
    background: var(--rf-orange);
}

.rf-button--primary:hover {
    border-color: #ffffff;
    background: #ffffff;
}

.rf-section {
    margin-top: 34px;
}

.rf-section--roomy {
    margin-top: 54px;
}

.rf-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rf-section__header--center {
    justify-content: center;
    text-align: center;
}

.rf-section__title {
    margin: 0;
    color: var(--rf-text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.rf-section__copy {
    margin: 8px 0 0;
    color: var(--rf-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rf-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: var(--rf-panel);
}

.rf-table th,
.rf-table td {
    border-bottom: 1px solid var(--rf-line-soft);
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
}

.rf-table th {
    color: var(--rf-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rf-table td {
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-table tr:last-child td {
    border-bottom: 0;
}

.rf-table a {
    color: var(--rf-orange);
    font-weight: 800;
    text-decoration: none;
}

.rf-empty {
    border: 1px dashed var(--rf-line);
    border-radius: 8px;
    padding: 24px;
    color: var(--rf-dim);
    text-align: center;
}

.rf-transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--rf-line-soft);
    padding: 12px 0;
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-transaction-row span {
    display: grid;
    gap: 4px;
}

.rf-transaction-row small {
    color: var(--rf-dim);
    font-size: 11px;
    line-height: 1.35;
}

.rf-transaction-row > span:last-child {
    justify-items: end;
    white-space: nowrap;
}

.rf-transaction-row:first-child {
    padding-top: 0;
}

.rf-transaction-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rf-product-card[type="button"] {
    width: 100%;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.rf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 26px 0 22px;
}

.rf-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: #0b0b0d;
    color: var(--rf-text);
    font: inherit;
    padding: 10px 12px;
    outline: none;
}

.rf-input:focus {
    border-color: rgba(255, 95, 31, 0.75);
}

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

.rf-status {
    color: var(--rf-muted);
    font-size: 13px;
    min-height: 18px;
}

.rf-status.is-error {
    color: #f87171;
}

.rf-status.is-ok {
    color: var(--rf-green);
}

.rf-hero {
    display: grid;
    gap: 28px;
    padding: 44px 0 20px;
}

.rf-hero--center {
    justify-items: center;
    gap: 20px;
    padding: 32px 0 12px;
    text-align: center;
}

.rf-hero--center .rf-hero__logo {
    width: min(360px, 78vw);
    height: 96px;
}

.rf-hero--center h1 {
    font-size: clamp(38px, 5.8vw, 64px);
    line-height: 1.02;
}

.rf-hero--center + .rf-section--roomy {
    margin-top: 38px;
}

.rf-hero__logo {
    width: min(420px, 82vw);
    height: 112px;
    background: var(--rf-orange);
    filter: drop-shadow(0 0 10px rgba(255, 95, 31, 0.36));
    -webkit-mask-image: url("/assets/ReFrame.AI.svg");
    -webkit-mask-size: 100% auto;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-image: url("/assets/ReFrame.AI.svg");
    mask-size: 100% auto;
    mask-repeat: no-repeat;
    mask-position: center center;
}

.rf-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--rf-text);
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 0.98;
}

.rf-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--rf-muted);
    font-size: 18px;
    line-height: 1.55;
}

.rf-hero--center p {
    margin-inline: auto;
}

.rf-product-card {
    min-height: 178px;
    text-decoration: none;
}

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

.rf-product-card:hover {
    border-color: rgba(255, 95, 31, 0.5);
}

.rf-product-card.is-primary {
    border-color: rgba(255, 95, 31, 0.6);
}

.rf-product-card.is-primary strong {
    color: var(--rf-orange);
}

.rf-product-card strong {
    display: block;
    color: var(--rf-text);
    font-size: 18px;
}

.rf-product-card span {
    display: block;
    margin-top: 10px;
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.5;
}

.rf-product-card .rf-card__cta {
    color: var(--rf-orange);
}

.rf-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.rf-step {
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: var(--rf-panel-soft);
    padding: 18px;
}

.rf-step span {
    display: block;
    margin-bottom: 18px;
    color: var(--rf-orange);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 850;
}

.rf-step strong {
    display: block;
    color: var(--rf-text);
    font-size: 14px;
    line-height: 1.45;
}

.rf-pricing-hero {
    max-width: 780px;
    padding: 54px 0 18px;
}

.rf-pricing-hero h1 {
    margin: 0;
    color: var(--rf-text);
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.02;
}

.rf-pricing-hero p {
    margin: 18px 0 0;
    color: var(--rf-muted);
    font-size: 17px;
    line-height: 1.6;
}

.rf-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.rf-price-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 22px;
}

.rf-price-card--featured {
    border-color: rgba(255, 95, 31, 0.5);
    background: #181719;
}

.rf-price-card__head h2 {
    margin: 0 0 12px;
    color: var(--rf-text);
    font-size: 22px;
    line-height: 1.25;
}

.rf-price-card__head p {
    margin: 10px 0 0;
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.6;
}

.rf-price-card__price {
    color: var(--rf-text);
    font-size: 34px;
    font-weight: 850;
    line-height: 1.05;
}

.rf-feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.45;
    list-style: none;
}

.rf-feature-list li {
    position: relative;
    padding-left: 18px;
}

.rf-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--rf-orange);
}

.rf-billing-toggle {
    display: inline-flex;
    gap: 4px;
    margin: 2px 0 18px;
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.rf-billing-toggle button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--rf-muted);
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.rf-billing-toggle button.is-active {
    color: #09090b;
    background: var(--rf-orange);
}

.rf-price-card > .rf-button {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 860px) {
    .rf-shell__inner {
        min-height: auto;
        flex-wrap: wrap;
        align-items: flex-start;
        padding-block: 14px;
    }

    .rf-shell--compact .rf-shell__inner {
        padding-block: 10px;
    }

    .rf-shell__left {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .rf-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .rf-context {
        display: none;
    }

    .rf-grid--2,
    .rf-grid--3,
    .rf-grid--4,
    .rf-steps,
    .rf-pricing-grid {
        grid-template-columns: 1fr;
    }

    .rf-main,
    .rf-landing-main {
        padding-inline: 16px;
    }

    .rf-table {
        display: block;
        overflow-x: auto;
    }

    .rf-hero--center {
        padding-top: 28px;
    }

    .rf-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rf-section__header--center {
        align-items: center;
    }
}

@media (max-width: 520px) {
    .rf-shell__right {
        width: 100%;
        justify-content: flex-start;
    }

    .rf-logo {
        width: 150px;
        height: 40px;
    }

    .rf-nav__link,
    .rf-pill,
    .rf-account-link,
    .rf-button,
    .rf-tab {
        font-size: 10px;
        padding-inline: 8px;
    }
}
