/* ============================================================
   ScriptFormer — unified stylesheet
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ---------- Theme (ScriptFormer) ---------- */
:root {
    --landing-accent: #D68636;
    --landing-accent-light: #FFB56C;
    --landing-bg: #2C2B29;
    --landing-box: #353432;
    --landing-border: #262626;
    --landing-root-border: rgba(255, 255, 255, 0.1);
    --landing-text: #E9E9E9;
    --landing-sub: #B0ACA5;
    --landing-hl: #3B3A38;
    --landing-dropdown-bg: rgba(29, 29, 29, 0.97);
    --landing-input-bg: #252525;
    --landing-input-border: #3A3A3A;
    --landing-input-border-hl: #CCCCCC;
    --landing-input-placeholder: #999999;
    --landing-input-text: #E0E0E0;
    --accent-color: #D68636;
    --muted: #B0ACA5;
    --card-bg: #353432;
    --border: #262626;
}

body {
    background: var(--landing-bg);
    color: var(--landing-text);
    font-family: 'Ubuntu', 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    line-height: 1.5;
}

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

body a {
    text-decoration: none;
    color: var(--accent-color);
}

a {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   Shared landing button (ported from Vue theme)
   ============================================================ */
.is-button-landing-primary,
.is-button-landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.05s;
}
.is-button-landing-primary {
    background: var(--landing-accent);
    color: #2C2B29;
}
.is-button-landing-primary:hover {
    background: var(--landing-accent-light);
    color: #2C2B29;
}
.is-button-landing-primary:disabled {
    opacity: 0.6;
    cursor: default;
    background: var(--landing-accent);
}
.is-button-landing-secondary {
    background: transparent;
    color: var(--landing-accent);
    border: 1px solid var(--landing-accent);
}
.is-button-landing-secondary:hover {
    background: var(--landing-accent-light);
    color: #2C2B29;
}

/* ---------- Value switcher (hero tabs, ported from Vue ValueSwitcher) ---------- */
.LandingValueSwitcher {
    width: 100%;
    display: flex;
    padding: 0.25rem;
    border-radius: 0.6rem;
}
.LandingValueSwitcher-button {
    flex: 1;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.53em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    color: #CCCCCC;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.05s;
}
.LandingValueSwitcher-button:first-child {
    border-top-left-radius: 0.6rem;
    border-bottom-left-radius: 0.6rem;
}
.LandingValueSwitcher-button:last-child {
    border-top-right-radius: 0.6rem;
    border-bottom-right-radius: 0.6rem;
}
.LandingValueSwitcher-button:hover,
.LandingValueSwitcher-button:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #CCCCCC;
}
.LandingValueSwitcher-button.selected {
    background: var(--landing-accent);
    color: #161616;
    border-color: var(--landing-accent);
}
@media (max-width: 767px) {
    .LandingValueSwitcher {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .LandingValueSwitcher-button {
        min-width: 100%;
        border-radius: 4px;
    }
}

/* ============================================================
   Header (ported from Vue LandingHeader)
   ============================================================ */
.LandingHeader {
    position: relative;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--landing-root-border);
}
.LandingHeader-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.LandingHeader-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.LandingHeader-logo img {
    width: 1.5rem;
    height: 1.5rem;
}
.LandingHeader-logo span {
    font-size: 1.25rem;
    color: var(--landing-text);
}
.LandingHeader-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
.LandingHeader-link {
    color: var(--landing-sub);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.LandingHeader-link:hover {
    color: var(--landing-accent);
}
.LandingHeader-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.LandingHeader-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    border: 1px solid var(--landing-accent);
    color: var(--landing-accent);
    font-size: 18px;
    text-decoration: none;
    transition: background 0.05s, color 0.05s;
}

.LandingHeader-cta-icon:hover {
    background: var(--landing-accent);
    color: #2C2B29;
}

@media (max-width: 767.98px) {
    .LandingHeader-cta {
        display: none;
    }
}
.LandingHeader-lang {
    position: relative;
    display: none;
}
.LandingHeader-lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #CCCCCC;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    padding: 0.53em 1rem;
    cursor: pointer;
    transition: all 0.05s;
}
.LandingHeader-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.LandingHeader-lang-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 9rem;
    background: var(--landing-dropdown-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 10px 15px;
    display: none;
    flex-direction: column;
    z-index: 100;
}
.LandingHeader-lang-menu.open {
    display: flex;
}
.LandingHeader-lang-item {
    color: #E0E0E0;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    padding: 0.8em 1em;
    margin: 0 -15px;
    white-space: nowrap;
    transition: all 0.05s;
}
.LandingHeader-lang-item:hover {
    background: #3a3a3a99;
}
.LandingHeader-lang-item.is-active {
    color: var(--landing-accent);
    font-weight: 600;
}
.LandingHeader-mobileToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    color: var(--landing-text);
    font-size: 1.5rem;
    line-height: 1;
}
.LandingHeader-mobileMenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--landing-bg);
    border-bottom: 1px solid var(--landing-root-border);
    padding: 1rem 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.LandingHeader-mobileMenu.open {
    display: flex;
}
.LandingHeader-mobileLink {
    color: var(--landing-sub);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
.LandingHeader-mobileLink:hover {
    color: var(--landing-accent);
}
.LandingHeader-mobileLang {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--landing-root-border);
    margin-top: 0.25rem;
}
.LandingHeader-mobileLangBtn {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: 1px solid var(--landing-root-border);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--landing-sub);
    text-align: center;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.LandingHeader-mobileLangBtn:hover,
.LandingHeader-mobileLangBtn.is-active {
    color: var(--landing-accent);
    border-color: var(--landing-accent);
}
.LandingHeader-mobileLangBtn.is-active {
    background-color: var(--landing-accent);
    color: #2C2B29;
}

@media (min-width: 768px) {
    .LandingHeader-links {
        display: flex;
    }
    .LandingHeader-lang {
        display: block;
    }
    .LandingHeader-mobileToggle,
    .LandingHeader-mobileMenu,
    .LandingHeader-mobileMenu.open {
        display: none;
    }
}

/* ============================================================
   Hero (ported from Vue HeroSection / HeroSectionCard)
   ============================================================ */
.LandingHero {
    padding: 5rem 1.5rem;
}
.LandingHero-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.LandingHero-header {
    text-align: center;
    margin-bottom: 1rem;
}
.LandingHero-heading {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 500;
    color: var(--landing-text);
    margin: 0 0 2rem;
}
.LandingHero-subtitle {
    color: var(--landing-sub);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 48rem;
    margin: 0 auto;
}
.LandingHero-main {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Hero card (ported from Vue HeroSection-main-card) */
.LandingHeroCard {
    flex: 1;
    width: 100%;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: var(--landing-box);
    font-size: 15px;
}
.LandingHeroCard-switcher {
    margin-bottom: 1.5rem;
}
.LandingHeroCard-tab {
    display: none;
}
.LandingHeroCard-tab.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Script area: grey zone wrapping the borderless textarea */
.LandingHeroCard-scriptArea {
    position: relative;
    border-radius: 0.5rem;
    background-color: var(--landing-input-bg);
    transition: border-color 0.2s, background-color 0.2s;
}
.LandingHeroCard-scriptArea-input {
    width: 100%;
    height: 16rem;
    padding: 1rem;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: var(--landing-text);
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.2s;
}
.LandingHeroCard-scriptArea-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}
.LandingHeroCard-scriptArea-input.dragging {
    background-color: color-mix(in oklab, var(--landing-accent) 5%, transparent);
}

/* tiny-scrollbars (ported from ims-app-base scrollbars-mixins, dark theme) */
.LandingHeroCard-scriptArea-input::-webkit-scrollbar,
.LandingHeroCard-textarea::-webkit-scrollbar {
    background-color: transparent;
    width: 6px;
    height: 6px;
}
.LandingHeroCard-scriptArea-input::-webkit-scrollbar-thumb,
.LandingHeroCard-textarea::-webkit-scrollbar-thumb {
    background-color: #232321;
    border-radius: 8px;
}
.LandingHeroCard-scriptArea-input::-webkit-scrollbar-corner,
.LandingHeroCard-textarea::-webkit-scrollbar-corner {
    background-color: transparent;
}
@media (max-width: 767.98px) {
    .LandingHeroCard-scriptArea-input::-webkit-scrollbar,
    .LandingHeroCard-textarea::-webkit-scrollbar {
        width: 15px;
        height: 15px;
    }
}

/* Drop hint overlay sits above the textarea; clicks pass through to it only */
.LandingHeroCard-dropOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.LandingHeroCard-dropOverlay.hidden {
    display: none;
}
.LandingHeroCard-dropHint {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.LandingHeroCard-dropIcon {
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
}
.LandingHeroCard-dropText {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* Loading veil over the script area */
.LandingHeroCard-loading {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: color-mix(in oklab, #161616 85%, transparent);
    border-radius: 0.5rem;
}
.LandingHeroCard-loading.show {
    display: flex;
}
.LandingHeroCard-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--landing-root-border);
    border-top-color: var(--landing-accent);
    border-radius: 50%;
    animation: landingSpin 0.8s linear infinite;
}
.LandingHeroCard-loadingText {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}
@keyframes landingSpin {
    to { transform: rotate(360deg); }
}

/* Full-width action buttons directly inside tab panels */
.LandingHeroCard-convertBtn {
    width: 100%;
    padding: 12px 24px;
}

/* Idea tab */
.LandingHeroCard-textarea {
    width: 100%;
    height: 16rem;
    resize: none;
    background-color: var(--landing-input-bg);
    border: 1px solid var(--landing-input-border);
    border-radius: 4px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: inherit;
    padding: 1rem;
    outline-width: 1px;
    outline-color: transparent;
    transition: border-color 0.2s;
}
.LandingHeroCard-textarea:hover {
    border-color: var(--landing-input-border-hl);
}
.LandingHeroCard-textarea:focus {
    border-color: var(--landing-accent);
}
.LandingHeroCard-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}
.LandingHeroCard-input {
    width: 100%;
    background-color: var(--landing-input-bg);
    border: 1px solid var(--landing-input-border);
    border-radius: 4px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    padding: 0.6em 0.66em;
    outline: 1px solid transparent;
    transition: border-color 0.2s;
}
.LandingHeroCard-input::placeholder {
    color: var(--landing-input-placeholder);
    font-style: italic;
    font-weight: 400;
}
.LandingHeroCard-input:hover {
    border-color: var(--landing-input-border-hl);
}
.LandingHeroCard-input:focus {
    border-color: var(--landing-accent);
    outline-color: var(--landing-accent);
}
.LandingHeroCard-ideaFields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.LandingHeroCard-label {
    display: block;
    color: var(--landing-text);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.LandingHeroCard-scratch p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--landing-sub);
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
}

/* Hero preview (ported from Vue HeroSection preview) */
.LandingHeroPreview {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.LandingHeroPreview-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--landing-box);
}
.LandingHeroPreview-before {
    font-size: 0.75rem;
    color: var(--landing-accent);
    margin: 0 0 0.2rem;
}
.LandingHeroPreview-code {
    font-family: 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--landing-sub);
    display: flex;
    flex-direction: column;
}
.LandingHeroPreview-arrow {
    display: flex;
    justify-content: center;
}
.LandingHeroPreview-arrowIcon {
    font-size: 2rem;
    line-height: 1;
    color: var(--landing-accent);
}
.LandingHeroPreview-player img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .LandingHero-heading {
        font-size: 3rem;
    }
}
@media (min-width: 1024px) {
    .LandingHero-main {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* ============================================================
   Sections (ported from Vue landing sections)
   ============================================================ */
.LandingSection {
    padding: 5rem 1.5rem;
}
.LandingSection-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.LandingSection-header {
    text-align: center;
}
.LandingSection-title {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

/* Supported engines (ported from Vue SupportedEnginesSection) */
.LandingEngines {
    background: var(--landing-bg);
}
.LandingEngines .LandingSection-inner {
    max-width: 80rem;
}
.LandingEngines .LandingSection-header {
    margin-bottom: 3rem;
}
.LandingEngines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.LandingEngines-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    background-color: var(--landing-hl);
    border-top: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.LandingEngines-card:hover {
    border-top-color: var(--landing-accent);
}
.LandingEngines-cardIcon {
    font-size: 3rem;
    line-height: 1;
    margin: 0 auto 1rem;
    color: var(--landing-accent);
    transition: color 0.2s;
}
.LandingEngines-cardName {
    color: var(--landing-text);
    margin: 0 0 0.25rem;
}
.LandingEngines-cardDesc {
    font-size: 0.875rem;
    color: var(--landing-sub);
    margin: 0;
}
.LandingEngines-more {
    text-align: center;
    font-size: 0.875rem;
    color: var(--landing-sub);
    margin: 0;
}
@media (min-width: 768px) {
    .LandingEngines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .LandingEngines-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* How it works (ported from Vue HowItWorksSection) */
.LandingHowItWorks {
    background: var(--landing-box);
}
.LandingHowItWorks .LandingSection-header {
    margin-bottom: 4rem;
}
.LandingHowItWorks-grid {
    display: grid;
    gap: 3rem;
}
.LandingHowItWorks-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.LandingHowItWorks-stepNum {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: var(--landing-accent);
    color: #2C2B29;
}
.LandingHowItWorks-stepTitle {
    font-size: 1.25rem;
    color: var(--landing-text);
    margin: 0 0 0.75rem;
}
.LandingHowItWorks-stepDesc {
    font-size: 1.125rem;
    color: var(--landing-sub);
    margin: 0;
}
@media (min-width: 768px) {
    .LandingHowItWorks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Already building a game (ported from Vue AlreadyBuildingGameSection) */
.LandingAlreadyBuilding {
    background: var(--landing-bg);
}
.LandingAlreadyBuilding .LandingSection-inner {
    max-width: 64rem;
}
.LandingAlreadyBuilding .LandingSection-header {
    margin-bottom: 3rem;
}
.LandingAlreadyBuilding .LandingSection-title {
    margin: 0 0 0.75rem;
}
.LandingAlreadyBuilding-subtitle {
    color: var(--landing-sub);
    font-size: 1.25rem;
    margin: 0;
}
.LandingAlreadyBuilding-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.LandingAlreadyBuilding-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.LandingAlreadyBuilding-featureIcon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.25rem;
    flex-shrink: 0;
    color: var(--landing-accent);
}
.LandingAlreadyBuilding-featureText {
    font-size: 1.125rem;
    color: var(--landing-text);
    margin: 0;
}
.LandingAlreadyBuilding-quote {
    position: relative;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    background-color: var(--landing-box);
}
.LandingAlreadyBuilding-quoteIcon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.3;
    color: var(--landing-accent);
}
.LandingAlreadyBuilding-quoteText {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--landing-text);
    margin: 0;
}
.LandingAlreadyBuilding-action {
    text-align: center;
}

/* ============================================================
   Features
   ============================================================ */
.LandingFeatures {
    background: var(--landing-bg);
}
.LandingFeatures .LandingSection-header {
    margin-bottom: 3rem;
}
.LandingFeatures-subtitle {
    color: var(--landing-sub);
    font-size: 1.25rem;
    margin: 0.75rem auto 0;
    max-width: 48rem;
}
.LandingFeatures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.LandingFeatures-card {
    background-color: var(--landing-hl);
    border-top: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
}
.LandingFeatures-card:hover {
    border-top-color: var(--landing-accent);
}
.LandingFeatures-cardIcon {
    color: var(--landing-accent);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
}
.LandingFeatures-cardTitle {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.LandingFeatures-cardDesc {
    color: var(--landing-sub);
    font-size: 0.875rem;
    margin: 0;
}
@media (max-width: 900px) {
    .LandingFeatures-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Pricing
   ============================================================ */
.LandingPricing {
    background: var(--landing-box);
    border-top: 1px solid var(--landing-border);
    border-bottom: 1px solid var(--landing-border);
}
.LandingPricing-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--landing-accent);
    margin: 0 0 0.6rem;
}
.LandingPricing-subtitle {
    color: var(--landing-sub);
    font-size: 1.05rem;
    margin: 0.75rem auto 2.5rem;
    max-width: 42rem;
}
.LandingPricing-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto 2rem;
}
.LandingPricing-countryWrap {
    position: relative;
    display: inline-flex;
}
.LandingPricing-country {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.55em 2.6em 0.55em 1em;
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 0.5em;
    color: var(--landing-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.LandingPricing-country:focus {
    outline: none;
    border-color: var(--landing-accent);
}
.LandingPricing-countryWrap::after {
    content: '';
    position: absolute;
    right: 1em;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--landing-sub);
    border-bottom: 2px solid var(--landing-sub);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.LandingPricing-billing {
    display: inline-flex;
    border: 1px solid var(--landing-border);
    border-radius: 0.6em;
    overflow: hidden;
    background: var(--landing-bg);
    margin: 0;
}
.LandingPricing-billing button {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1.1em;
    border: none;
    background: transparent;
    color: var(--landing-sub);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.LandingPricing-billing button:hover {
    color: var(--landing-text);
}
.LandingPricing-billing button.is-active {
    background: var(--landing-accent);
    color: #2C2B29;
    font-weight: 600;
}
.LandingPricing-save {
    display: inline-block;
    padding: 0.1em 0.55em;
    border-radius: 999px;
    background: var(--landing-accent);
    color: #2C2B29;
    font-size: 0.72rem;
    font-weight: 700;
}
.LandingPricing-billing button.is-active .LandingPricing-save {
    background: #2C2B29;
    color: var(--landing-accent);
}
.LandingPricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    text-align: left;
}
.LandingPricingCard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 0.9em;
    padding: 1.5rem;
}
.LandingPricingCard.is-highlight {
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 1px var(--landing-accent), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.LandingPricingCard-badge {
    position: absolute;
    top: -0.85em;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25em 1em;
    border-radius: 999px;
    background: var(--landing-accent);
    color: #2C2B29;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.LandingPricingCard-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.LandingPricingCard-price {
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    margin-bottom: 0.4rem;
}
.LandingPricingCard-value {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: var(--landing-accent);
}
.LandingPricingCard-period {
    color: var(--landing-sub);
    font-size: 0.9rem;
}
.LandingPricingCard-annualNote {
    color: var(--landing-sub);
    font-size: 0.8rem;
    margin: -0.2rem 0 0.8rem;
    display: none;
}
.LandingPricing.is-annual .LandingPricingCard-annualNote {
    display: block;
}
.LandingPricingCard-desc {
    color: var(--landing-sub);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.LandingPricingCard-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.92rem;
}
.LandingPricingCard-features li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.LandingPricingCard-features i {
    color: var(--landing-accent);
    margin-top: 2px;
}
.LandingPricingCard .is-button-landing-primary,
.LandingPricingCard .is-button-landing-secondary {
    margin-top: auto;
    width: 100%;
}
.LandingPricing-note {
    text-align: center;
    color: var(--landing-sub);
    font-size: 0.88rem;
    margin: 1.5rem auto 0;
    max-width: 48rem;
}
.LandingPricing-note a {
    color: var(--landing-accent);
}
@media (max-width: 1100px) {
    .LandingPricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .LandingPricing-grid {
        grid-template-columns: 1fr;
    }
    .LandingPricingCard.is-highlight {
        order: -1;
    }
}

/* Call to action (ported from Vue CallToActionSection) */
.LandingCta {
    background: var(--landing-bg);
}
.LandingCta .LandingSection-inner {
    max-width: 56rem;
    text-align: center;
}
.LandingCta-heading {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--landing-text);
    margin: 0 0 2rem;
}
.LandingCta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.LandingCta-actions .is-button-landing-primary,
.LandingCta-actions .is-button-landing-secondary {
    font-size: 1rem;
}
.LandingCta-desc {
    color: var(--landing-sub);
    margin: 0;
    font-size: 0.875rem;
}
@media (min-width: 640px) {
    .LandingCta-actions {
        flex-direction: row;
    }
}

/* ============================================================
   Footer (ported from Vue LandingFooter)
   ============================================================ */
.LandingFooter {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--landing-root-border);
}
.LandingFooter-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.LandingFooter-brand {
    text-align: center;
}
.LandingFooter-brandName {
    color: var(--landing-sub);
    margin: 0 0 0.5rem;
}
.LandingFooter-copyright {
    font-size: 0.875rem;
    color: var(--landing-sub);
    margin: 0;
}
.LandingFooter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.LandingFooter-link {
    font-size: 0.875rem;
    color: var(--landing-sub);
    transition: color 0.2s;
}
.LandingFooter-link:hover {
    color: var(--landing-accent);
}
@media (min-width: 768px) {
    .LandingFooter-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .LandingFooter-brand {
        text-align: left;
    }
}

/* ============================================================
   Non-landing page shared styles
   ============================================================ */
.container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section-kicker {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 48rem;
    margin-top: 1.25rem;
}

.hl {
    color: var(--accent-color);
}

/* ---------- Non-landing buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7em 1.5em;
    border-radius: 0.55em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #2C2B29;
}

.btn-accent:hover {
    background-color: var(--landing-accent-light);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-ghost:hover {
    background-color: var(--accent-color);
    color: #2C2B29;
}

/* ---------- Feedback form ---------- */
.feedback-section .section-intro {
    margin-bottom: 2rem;
}

.feedback-form {
    max-width: 40rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feedback-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-form-field label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.feedback-form-field input,
.feedback-form-field textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.55em;
    color: var(--landing-text);
    font-size: 1rem;
    font-family: 'Ubuntu', 'Segoe UI', Arial, Helvetica, sans-serif;
    padding: 0.75em 1em;
    transition: border-color 0.15s;
}

.feedback-form-field input:focus,
.feedback-form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.feedback-form-field textarea {
    resize: vertical;
    min-height: 10rem;
}

.feedback-form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
}

.feedback-form-check input {
    flex-shrink: 0;
    margin-top: 0.2em;
    accent-color: var(--accent-color);
}

.feedback-form-check a {
    color: var(--accent-color);
    text-decoration: none;
}

.feedback-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.feedback-form-noscript {
    color: #e74c3c;
    font-size: 0.85rem;
}

/* ---------- Blog list ---------- */
.blog-description {
    margin-bottom: 1.5rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2.5rem;
}

.blog-sidebar {
    position: sticky;
    top: 5rem;
    padding-top: 0.15rem;
}

.blog-sidebar-title {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
}

.blog-cats {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.blog-cat-chip {
    display: block;
    padding: 0.65em 0;
    border: none;
    border-radius: 0;
    background: none;
    font-size: 1rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s, padding-left 0.15s;
}

.blog-cat-chip:hover {
    color: var(--landing-text);
    padding-left: 0.4em;
}

.blog-cat-chip.active {
    color: var(--accent-color);
    font-weight: 700;
}

.blog-main {
    min-width: 0;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 54rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.9em;
    padding: 1.6em 1.75em;
    transition: border-color 0.15s;
}

.blog-card:hover {
    border-color: rgba(214, 134, 54, 0.45);
}

.blog-card-date {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.blog-card-title {
    display: block;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--landing-text);
    text-decoration: none;
    margin-top: 0.6em;
    transition: color 0.15s;
}

.blog-card-title:hover {
    color: var(--accent-color);
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 0.75em;
}

.blog-card-excerpt p {
    margin-bottom: 0.5em;
}

.blog-card-link {
    margin-top: 1.15em;
    padding: 0.6em 1em;
    font-size: 0.92rem;
}

.blog-pagination {
    display: flex;
    gap: 0.6em;
    margin-top: 2.75rem;
}

.blog-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6em;
    height: 2.6em;
    padding: 0 0.6em;
    border: 1px solid var(--border);
    border-radius: 0.55em;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.blog-pagination-item:hover {
    color: var(--landing-text);
    border-color: var(--accent-color);
}

.blog-pagination-item.active {
    color: #2C2B29;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.blog-rss {
    margin-top: 2.5rem;
}

.blog-rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.blog-rss-link:hover {
    color: var(--accent-color);
}

/* ---------- Blog article ---------- */
.blog-article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.blog-article-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.blog-article-breadcrumbs a:hover {
    color: var(--accent-color);
}

.blog-article-breadcrumbs-sep {
    color: var(--border);
}

.blog-article-title {
    max-width: 54rem;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
    margin-top: 1.15rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.blog-article-date {
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.blog-article-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
}

.blog-article-tag {
    display: inline-block;
    padding: 0.25em 0.75em;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.blog-article-tag:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.blog-article-lead {
    margin-top: 2rem;
    font-size: 1.15rem;
    color: var(--muted);
}

.blog-article-body {
    margin-top: 1.5rem;
}

.blog-article-back {
    margin-top: 3rem;
}

/* ---------- Static page ---------- */
.static-page-title {
    max-width: 54rem;
}

.static-page-lead {
    margin-bottom: 0.75rem;
}

.static-page-section {
    margin-top: 2.75rem;
}

.static-page-section-title {
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.static-page-section-description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ---------- Rich content (blog body / static html) ---------- */
.rich-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--landing-text);
    max-width: 54rem;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content p {
    margin: 0 0 1.15rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    font-weight: 800;
    line-height: 1.25;
    margin: 2.25rem 0 0.9rem;
}

.rich-content h1 { font-size: 2rem; }
.rich-content h2 { font-size: 1.75rem; }
.rich-content h3 { font-size: 1.45rem; }
.rich-content h4 { font-size: 1.2rem; }
.rich-content h5,
.rich-content h6 { font-size: 1.05rem; }

.rich-content ul,
.rich-content ol {
    margin: 0 0 1.15rem;
    padding-left: 1.5em;
}

.rich-content li {
    margin-bottom: 0.5em;
}

.rich-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.rich-content a:hover {
    text-decoration: underline;
}

.rich-content blockquote {
    margin: 1.5rem 0;
    padding: 0.9em 1.4em;
    border-left: 3px solid var(--accent-color);
    background: var(--card-bg);
    border-radius: 0 0.6em 0.6em 0;
    color: var(--muted);
}

.rich-content pre {
    margin: 0 0 1.15rem;
    padding: 1em 1.25em;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.7em;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.rich-content code {
    font-family: Consolas, Menlo, monospace;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.35em;
    padding: 0.15em 0.4em;
    font-size: 0.92em;
}

.rich-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.rich-content table {
    width: 100%;
    margin: 0 0 1.15rem;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.rich-content th,
.rich-content td {
    padding: 0.65em 0.9em;
    border: 1px solid var(--border);
    text-align: left;
}

.rich-content th {
    background: var(--card-bg);
    font-weight: 700;
}

.rich-content img {
    border-radius: 0.7em;
    margin: 0.75em 0;
}

.rich-content figure {
    margin: 0.75em 0 1.15em;
}

.rich-content figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.5em;
}

.rich-content iframe {
    max-width: 100%;
    border-radius: 0.7em;
    margin: 0.75em 0;
}

.rich-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.rich-content strong,
.rich-content b {
    color: var(--landing-text);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .blog-card {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
    }
}

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