:root {
    color-scheme: light dark;
    --bg: #f6f7f8;
    --surface: #ffffff;
    --text: #1b1d1f;
    --muted: #5b646b;
    --brand: #a4195c;
    --brand-strong: #7f1247;
    --line: #dde3e8;
    --header-bg: var(--surface);
    --footer-bg: var(--surface);
    --hero-grad-start: #f2f6f5;
    --input-bg: #ffffff;
    --danger: #8c1111;
    --success-bg: #e9f8ed;
    --success-line: #b8e3c3;
    --success-text: #155a2f;
    --button-secondary-bg: #ffffff;
    --button-secondary-text: var(--brand-strong);
    --button-secondary-line: var(--brand);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1114;
        --surface: #171b20;
        --text: #ecf0f3;
        --muted: #aab4be;
        --brand: #a4195c;
        --brand-strong: #d94c8d;
        --line: #2a313a;
        --header-bg: #11161b;
        --footer-bg: #11161b;
        --hero-grad-start: #131920;
        --input-bg: #11161b;
        --danger: #ff8e8e;
        --success-bg: #153424;
        --success-line: #2a6f4b;
        --success-text: #d6f5e0;
        --button-secondary-bg: #11161b;
        --button-secondary-text: #f1c3da;
        --button-secondary-line: #a4195c;
    }
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f7f8;
    --surface: #ffffff;
    --text: #1b1d1f;
    --muted: #5b646b;
    --brand: #a4195c;
    --brand-strong: #7f1247;
    --line: #dde3e8;
    --header-bg: var(--surface);
    --footer-bg: var(--surface);
    --hero-grad-start: #f2f6f5;
    --input-bg: #ffffff;
    --danger: #8c1111;
    --success-bg: #e9f8ed;
    --success-line: #b8e3c3;
    --success-text: #155a2f;
    --button-secondary-bg: #ffffff;
    --button-secondary-text: var(--brand-strong);
    --button-secondary-line: var(--brand);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1114;
    --surface: #171b20;
    --text: #ecf0f3;
    --muted: #aab4be;
    --brand: #a4195c;
    --brand-strong: #d94c8d;
    --line: #2a313a;
    --header-bg: #11161b;
    --footer-bg: #11161b;
    --hero-grad-start: #131920;
    --input-bg: #11161b;
    --danger: #ff8e8e;
    --success-bg: #153424;
    --success-line: #2a6f4b;
    --success-text: #d6f5e0;
    --button-secondary-bg: #11161b;
    --button-secondary-text: #f1c3da;
    --button-secondary-line: #a4195c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Noto Sans", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--hero-grad-start) 0%, var(--bg) 100%);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand-strong);
    letter-spacing: 0.3px;
}

.brand img {
    width: 34px;
    height: 34px;
    display: block;
}

.brand span {
    line-height: 1;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--brand);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.language-switch button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.language-switch button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.language-switch button[aria-current="true"] {
    border-color: var(--brand);
    color: #fff;
    background: var(--brand);
}

.language-switch button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.page-content {
    min-height: calc(100vh - 140px);
}

.hero {
    padding: 5rem 0 3rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.1rem;
    margin: 1rem 0 1.5rem;
}

.hero-copy {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.hero-copy p {
    margin: 0;
    max-width: 82ch;
}

.hero-stage {
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--brand) 10%, transparent) 0%, transparent 44%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--brand) 8%) 0%, var(--surface) 100%);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.2rem;
    align-items: center;
}

.hero-lead {
    color: var(--text);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    line-height: 1.65;
    font-weight: 560;
}

.hero-flow-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.hero-flow-points li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}

.hero-flow-points i {
    color: var(--brand-strong);
    font-size: 1.1rem;
    margin-top: 0.16rem;
}

.hero-support,
.hero-flow-points span {
    color: var(--muted);
    line-height: 1.65;
}

.hero-visual-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
}

.hero-shot {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 10%, transparent);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.hero-shot-a {
    transform: rotate(-2deg);
}

.section {
    padding: 2rem 0 4rem;
}

.content-layout h1 {
    margin-top: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: none;
}

.section-intro {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    width: 100%;
    max-width: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
    padding: 0.9rem 1rem;
}

.section-intro .lead {
    margin: 0;
    max-width: none;
}

.workflow-banner,
.ai-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.workflow-banner::after,
.ai-banner::after {
    content: "";
    position: absolute;
    inset: auto -38px -38px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    pointer-events: none;
}

.workflow-banner {
    border-left: 6px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

.ai-banner {
    border-left: 6px solid color-mix(in srgb, var(--brand-strong) 42%, transparent);
    background: color-mix(in srgb, var(--surface) 85%, var(--brand) 15%);
}

.messages {
    padding-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.message {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    color: var(--success-text);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
    max-height: 12rem;
    overflow: hidden;
}

.message.is-hiding {
    opacity: 0;
    transform: translateY(-0.2rem);
}

.message.is-hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.auth-shell {
    max-width: 560px;
}

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

.field-row {
    display: grid;
    gap: 0.35rem;
}

.field-row input {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
}

.field-row select,
.field-row textarea {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
}

.field-row ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--danger);
    font-size: 0.92rem;
}

.field-row small {
    color: var(--muted);
    font-size: 0.9rem;
}

.muted-linkline {
    margin-top: 1rem;
    color: var(--muted);
}

.rich-content {
    line-height: 1.7;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.flow-section .lead {
    max-width: 900px;
}

.flow-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 1.3rem auto 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.flow-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    min-width: 220px;
    max-width: 500px;
    flex: 1 1 0;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 8%, transparent);
}

.flow-step-head {
    display: flex;
    justify-content: flex-start;
    padding: 0.55rem 0.7rem 0;
    margin-bottom: 0.7rem;
}

.flow-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
    background: color-mix(in srgb, var(--surface) 84%, var(--brand) 16%);
    color: var(--brand-strong);
    font-size: 1rem;
}

.flow-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.flow-image {
    background: color-mix(in srgb, var(--surface) 70%, var(--line) 30%);
}

.flow-card figcaption {
    padding: 0.7rem 0.85rem 0.85rem;
    font-size: 0.94rem;
    color: var(--muted);
}

.ai-transform-grid {
    align-items: stretch;
}

.ai-flow-icon-stage,
.ai-empty-stage {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--surface) 74%, var(--line) 26%);
}

.ai-flow-icon-card .ai-flow-icon-stage {
    background: color-mix(in srgb, var(--surface) 78%, var(--brand) 22%);
}

.ai-empty-card .ai-empty-stage {
    border-top: 1px dashed color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
    border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, var(--brand) 30%);
}

.ai-transform-marker {
    min-width: 220px;
    max-width: 280px;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 82%, var(--brand) 18%);
    color: var(--muted);
}

.ai-icon-wrap {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand-strong);
    font-size: 1.7rem;
}

.ai-transform-marker p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
}

.ai-empty-card figcaption {
    color: transparent;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    display: block;
}

.card h3 {
    margin: 0 0 0.4rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"] {
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 0.72rem 1.05rem;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: var(--brand-strong);
}

.button[disabled],
.button[aria-disabled="true"] {
    background: #9aa3ab;
    border-color: #9aa3ab;
    color: #eef1f3;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    color: var(--muted);
}

.site-footer .container {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    margin: 0;
}

.footer-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--brand-strong);
}

.checkout-steps {
    margin: 1rem 0;
    padding-left: 1.25rem;
    line-height: 1.8;
}

.checkout-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checkout-actions.register-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.checkout-intent {
    margin-top: 2rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.checkout-intent h2 {
    margin-top: 0;
}

.checkout-methods {
    gap: 0.7rem;
}

.checkout-methods-radio {
    display: grid;
    gap: 0.5rem;
}

.payment-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-method-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.checkout-method-card-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}

.payment-option-card {
    cursor: pointer;
}

.payment-option-input:checked+.payment-option-card {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}

.payment-option-input:focus-visible+.payment-option-card {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.payment-option-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.checkout-method-card input {
    margin-right: 0.4rem;
}

.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-grid {
    gap: 1.4rem;
}

.plan-card {
    position: relative;
}

.plan-card-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.3rem;
}

.plan-card-showcase h3,
.plan-card-showcase p {
    margin: 0;
}

.plan-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.25rem 0;
}

.plan-card-showcase .plan-price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.plan-price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-weight: 500;
    margin-right: 0.45rem;
}

.plan-card-showcase .plan-price-old {
    font-size: 1.05rem;
    margin-right: 0.55rem;
}

.plan-price-current {
    color: var(--text);
}

.plan-card-showcase .plan-price-current {
    font-size: 2.1rem;
    font-weight: 800;
}

.plan-discount {
    display: inline-block;
    margin: 0.2rem 0 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-card-showcase .plan-discount {
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.55rem 1rem;
    line-height: 1.15;
}

.plan-copy {
    margin-top: 0.15rem;
}

.plan-card-showcase .plan-copy {
    font-size: 1.05rem;
    line-height: 1.6;
}

.plan-cta {
    margin-top: 0.35rem;
}

.button.secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: 1px solid var(--button-secondary-line);
}

@media (max-width: 760px) {
    .plan-card-showcase .plan-price {
        font-size: 1.7rem;
    }

    .plan-card-showcase .plan-price-current {
        font-size: 1.8rem;
    }

    .plan-card-showcase .plan-discount {
        font-size: 1.05rem;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .site-footer .container {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 0;
    }

    .footer-tools {
        justify-content: flex-start;
    }

    .language-switch {
        margin-top: 0.2rem;
    }

    .main-nav {
        width: 100%;
        gap: 0.65rem;
        row-gap: 0.5rem;
    }

    .main-nav a,
    .main-nav .language-switch {
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 1.5rem 0 2.2rem;
    }

    .hero-copy {
        gap: 0.8rem;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.9rem;
    }

    .hero-visual-strip {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-shot-a {
        transform: none;
    }

    .flow-grid {
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .flow-card {
        min-width: 88vw;
    }

    .flow-card img {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .ai-transform-marker {
        min-width: 88vw;
        max-width: 88vw;
        flex: 0 0 88vw;
    }
}