/* ============================================================
   Zizq Website - Shared Styles
   This file is used by both the Yew SPA and mdBook themes.
   ============================================================ */

:root {
    /* Backgrounds */
    --zizq-bg-light: #F9F9F9;
    --zizq-bg-dark: #050065;
    --zizq-bg-dark-accent: #034070;

    /* Text on light background */
    --zizq-text-primary: #252432;
    --zizq-text-secondary: #777691;
    --zizq-text-inverted-on-light: #050065;

    /* Text on dark background */
    --zizq-text-on-dark-primary: #EAEAF6;
    --zizq-text-on-dark-secondary: #B1B0C7;
    --zizq-text-inverted-on-dark: #F9F9F9;

    /* Accent colors */
    --zizq-bright-blue: #00D4FF;
    --zizq-bright-cyan: #00CC88;
    --zizq-bright-magenta: #D000D4;

    /* Semantic aliases */
    --zizq-bg: var(--zizq-bg-light);
    --zizq-bg-alt: #ECECEC;
    --zizq-text: var(--zizq-text-primary);
    --zizq-text-muted: var(--zizq-text-secondary);
    --zizq-link: #1D8965;
    --zizq-header-bg: var(--zizq-bg-dark);
    --zizq-header-bg-accent: var(--zizq-bg-dark-accent);
    --zizq-header-text: var(--zizq-text-on-dark-primary);
    --zizq-header-text-muted: var(--zizq-text-on-dark-secondary);
    --zizq-header-text-active: var(--zizq-text-on-dark-primary);
    --zizq-border: #E0E0E0;

    /* Fonts */
    --zizq-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --zizq-font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas,
        monospace;
    --zizq-code-font-size: 0.875em;
    --zizq-code-background: #eeeeee;
    --zizq-table-header-bg: #e0e0e0;
    --zizq-table-alternate-bg: #f3f3f3;

    /* Layout */
    --zizq-max-width: 1000px;
    --zizq-page-padding: 24px;
    --zizq-header-height: 64px;
}

/* ---- Reset (scoped to avoid breaking mdBook) ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* Only reset margin/padding on the site header and SPA content,
   not on mdBook which manages its own spacing. */
.site-header,
.site-header *,
.site-footer,
.site-footer *,
.hero, .hero *,
.not-found, .not-found * {
    margin: 0;
    padding: 0;
}

html {
    /* 62.5% of browser default 16px = 10px, so 1rem = 10px.
       This matches mdBook's convention so rem values are consistent
       between the Yew SPA and the documentation pages. */
    font-size: 62.5%;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* 1.6rem × 10px = 16px body text. */
    font-size: 1.6rem;
    font-family: var(--zizq-font-sans);
    color: var(--zizq-text);
    background: var(--zizq-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--zizq-link);
}

code,
pre {
    font-family: var(--zizq-font-mono);
    font-size: var(--zizq-code-font-size);
}

pre {
    color: var(--zizq-text-secondary);
}

/* ---- Site Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--zizq-header-bg) 30%, var(--zizq-header-bg-accent) 100%);
    color: var(--zizq-header-text);
    height: var(--zizq-header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 0 var(--zizq-page-padding);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header .site-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    height: 100%;
}

.site-header .site-logo img {
    height: 48px !important;
    width: auto !important;
}

.site-header .site-nav {
    display: flex;
    gap: 24px;
}

.site-header .nav-link-right {
    margin-left: 32px;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--zizq-header-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

.site-header .nav-link {
    color: var(--zizq-header-text-muted) !important;
    text-decoration: none !important;
    font-family: var(--zizq-font-sans) !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    transition: color 0.15s;
}

.site-header .nav-link:hover {
    color: var(--zizq-header-text) !important;
}

.site-header .nav-link.active {
    color: var(--zizq-header-text-active) !important;
}

@media (max-width: 600px) {
    .nav-hamburger {
        display: block;
    }

    .site-header .site-nav {
        flex-direction: column;
        position: absolute;
        top: var(--zizq-header-height);
        left: 0;
        right: 0;
        background: var(--zizq-header-bg-accent);
        padding: 0 var(--zizq-page-padding);
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .site-header .site-nav.site-nav-open {
        max-height: 300px;
        padding: 1.6rem var(--zizq-page-padding);
    }

    .site-header .site-nav .nav-link {
        padding: 1.2rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-header .site-nav .nav-link:last-child {
        border-bottom: none;
    }

    .site-header .nav-link-right {
        margin-left: 0;
    }
}

/* ---- Hero (Home page) ---- */
.hero {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 4.8rem var(--zizq-page-padding) 9.6rem var(--zizq-page-padding);
    text-align: center;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.6rem;
}

.tagline {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--zizq-text-muted);
}

.tagline-headline {
    display: block;
    margin-bottom: 0.4em;
}

.nowrap {
    white-space: nowrap;
}

/* ---- Hero actions ---- */
.hero-actions {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    margin-top: 3.2rem;
}

.hero-cta-primary {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    background: var(--zizq-bg-dark);
    color: var(--zizq-text-on-dark-primary) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.hero-cta-primary:hover {
    opacity: 0.9;
}

.hero-cta-secondary {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    border: 1px solid var(--zizq-border);
    color: var(--zizq-text) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    transition: border-color 0.15s;
}

.hero-cta-secondary:hover {
    border-color: var(--zizq-bg-dark);
}

/* ---- Home: alternating text + visual sections ---- */
.home-section {
    display: flex;
    gap: 4.8rem;
    align-items: center;
    padding: 4.8rem 0;
}

.home-section-reversed {
    flex-direction: row-reverse;
}

.home-section-text {
    flex: 1;
}

.home-section-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.home-section-text p {
    color: var(--zizq-text-secondary);
    line-height: 1.7;
}

.home-section-text code {
    background: var(--zizq-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}

.home-section-visual {
    flex: 1;
}

.home-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(5, 0, 101, 0.5);
}

.screenshot-placeholder {
    background: var(--zizq-bg-alt);
    border: 2px dashed var(--zizq-border);
    border-radius: 12px;
    padding: 6.4rem 3.2rem;
    text-align: center;
    color: var(--zizq-text-muted);
    font-size: 1.44rem;
}

/* ---- Home: feature grid ---- */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    padding: 4.8rem 0;
}

.home-feature {
    padding: 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(5, 0, 101, 0.06);
}

.home-feature h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    margin-block-start: 0;
}

.home-feature p {
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---- Home: bottom CTA ---- */
.home-cta {
    text-align: center;
    padding: 2.4rem 0 6.4rem;
}

.home-cta h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.home-cta p {
    color: var(--zizq-text-muted);
    font-size: 1.6rem;
    max-width: 560px;
    margin: 0 auto 2.4rem;
}

.home-cta-actions {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 4.8rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .tagline {
        font-size: 2rem;
    }

    .home-section-text h2,
    .home-cta h2 {
        font-size: 2.2rem;
    }

    .docs-hero h1 {
        font-size: 2.4rem;
    }

    .home-section {
        flex-direction: column;
        gap: 2.4rem;
        padding: 2.4rem 0;
    }

    .home-section-reversed {
        flex-direction: column;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .home-cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- Content page ---- */
.content-page {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 0 var(--zizq-page-padding);
}

/* ---- Prose (body text) ---- */
.prose {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 4rem 0 6.4rem;
    line-height: 1.7;
    color: var(--zizq-text-secondary);
}

.prose h1 {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: var(--zizq-text);
}

.prose h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--zizq-text);
}

.prose h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
    color: var(--zizq-text);
}

.prose h4 {
    font-size: 1.44em;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--zizq-text);
}

.prose h5 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--zizq-text-muted);
}

.prose p {
    margin-bottom: 1.6rem;
}

.prose ul,
.prose ol {
    margin-bottom: 1.6rem;
    padding-left: 2.4rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--zizq-border);
    margin: 3.2rem auto;
    width: 50%;
}

.prose code {
    background: var(--zizq-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}

.prose strong {
    font-weight: 600;
    color: var(--zizq-text);
}

.prose a {
    color: var(--zizq-link);
}

@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.5em;
    }

    .prose h2 {
        font-size: 1.3em;
    }

    .prose h3 {
        font-size: 1.15em;
    }

    .prose h4 {
        font-size: 1.05em;
    }
}

/* ---- Pricing ---- */
.pricing-header {
    text-align: center;
    padding-top: 3.2rem;
}

.pricing-header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.pricing-cards {
    display: flex;
    gap: 2.4rem;
    justify-content: center;
    padding: 2.4rem 0 6.4rem;
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-card {
        max-width: none;
    }

    .pricing-period-selector.empty,
    .pricing-renewal.empty,
    .pricing-instance-limit.empty {
        display: none;
    }
}

.pricing-card {
    flex: 1;
    max-width: 400px;
    border: 1px solid var(--zizq-border);
    border-radius: 12px;
    padding: 3.2rem;
    background: var(--zizq-bg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(5, 0, 101, 0.12);
}

.pricing-card-highlighted {
    border-color: var(--zizq-bg-dark);
    border-width: 2px;
    position: relative;
}

.pricing-card-header {
    margin-bottom: 2.4rem;
}

.pricing-card-name {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.pricing-card-highlighted .pricing-card-name {
    color: var(--zizq-bg-dark);
}

.pricing-card-description {
    color: var(--zizq-text-muted);
    font-size: 1.44rem;
}

.pricing-card-price {
    margin-bottom: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--zizq-border);
}

.pricing-amount {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
}

.pricing-renewal {
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--zizq-text-muted);
    margin-top: 0.4rem;
}

.pricing-instance-limit {
    font-size: 1.28rem;
    color: var(--zizq-text-muted);
    margin-top: 0.8rem;
}

.pricing-support-callout {
    max-width: var(--zizq-max-width);
    margin: 4rem 8rem 12rem;
    text-align: center;
}

.pricing-support-callout p {
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
}

.pricing-footnotes {
    max-width: var(--zizq-max-width);
    margin: 3.2rem auto 0;
    padding: 0 2.4rem;
}

.pricing-footnotes p {
    display: flex;
    gap: 0.6rem;
    font-size: 1.28rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
    margin: 0 0 0.4rem;
}

.pricing-footnotes p span:first-child {
    flex-shrink: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.4rem;
    flex-grow: 1;
}

.pricing-feature {
    padding: 0.64rem 0;
    padding-left: 2.4rem;
    position: relative;
    font-size: 1.44rem;
}

.pricing-feature::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--zizq-bright-cyan);
    font-weight: 700;
}

.pricing-feature-inherited {
    color: var(--zizq-text-muted);
}

.pricing-feature-inherited::before {
    color: var(--zizq-text-muted);
}

.pricing-card-actions {
    margin-bottom: 1.6rem;
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--zizq-bg-dark);
    color: var(--zizq-text-on-dark-primary) !important;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    transition: opacity 0.15s;
}

.pricing-cta:hover {
    opacity: 0.9;
}

.pricing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.pricing-period-selector {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2.4rem;
    min-height: 3.2rem;
}

.pricing-period-btn {
    padding: 0.64rem 1.2rem;
    border: 1px solid var(--zizq-border);
    border-radius: 6px;
    background: var(--zizq-bg);
    color: var(--zizq-text-muted);
    font-size: 1.28rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.pricing-period-btn:hover {
    border-color: var(--zizq-bright-cyan);
    color: var(--zizq-text);
}

.pricing-period-btn-active {
    background: var(--zizq-bright-cyan);
    color: var(--zizq-text-inverted-on-dark);
    border-color: var(--zizq-bright-cyan);
}

.pricing-period-btn-active:hover {
    color: var(--zizq-text-inverted-on-dark);
}

.pricing-option {
    font-size: 1.2rem;
    color: var(--zizq-text-muted);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--zizq-border);
    border-radius: 4px;
}

.pricing-no-license {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.2rem 2.4rem;
    font-size: 1.28rem;
    color: var(--zizq-text-muted);
}

.pricing-currency {
    text-align: center;
    color: var(--zizq-text-muted);
    font-size: 1.2rem;
    margin-top: 1.6rem;
}

.pricing-loading {
    text-align: center;
    padding: 6.4rem 0;
    color: var(--zizq-text-muted);
}

@media (max-width: 768px) {
  .pricing-support-callout {
      margin: 2rem 0 6rem;
  }

  .pricing-footnotes {
      margin: 3.2rem auto 0;
      padding: 0;
  }
}

/* ---- Buy Page ---- */
.buy-header {
    text-align: center;
    padding: 3.2rem 0 2.4rem;
}

.buy-layout {
    display: flex;
    gap: 4.8rem;
    padding-bottom: 3.2rem;
}

@media (max-width: 768px) {
    .buy-layout {
        flex-direction: column;
        gap: 3.2rem;
    }
}

.buy-license-options,
.buy-contact-details {
    flex: 1;
}

.buy-license-options h2,
.buy-contact-details h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
}

.buy-field {
    margin-bottom: 1.6rem;
}

.buy-field label {
    display: block;
    font-size: 1.36rem;
    font-weight: 500;
    color: var(--zizq-text-muted);
    margin-bottom: 0.56rem;
}

.buy-field input[type="text"],
.buy-field input[type="email"],
.buy-field select {
    width: 100%;
    padding: 0.96rem 1.2rem;
    border: 1px solid var(--zizq-border);
    border-radius: 6px;
    font-size: 1.44rem;
    font-family: var(--zizq-font-sans);
    background: var(--zizq-bg);
    color: var(--zizq-text);
}

.buy-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777691' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3.2rem;
}

.buy-field select option[disabled] {
    color: var(--zizq-text-muted);
}

.buy-field input:focus,
.buy-field select:focus {
    outline: none;
    border-color: var(--zizq-bg-dark);
    box-shadow: 0 0 0 2px rgba(5, 0, 101, 0.15);
}

.buy-tier-name {
    font-size: 1.76rem;
    font-weight: 600;
}

.buy-period-options {
    display: flex;
    gap: 0.8rem;
}

.buy-period-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.24rem;
    padding: 0.96rem 0.8rem;
    border: 1px solid var(--zizq-border);
    border-radius: 6px;
    background: var(--zizq-bg);
    color: var(--zizq-text);
    cursor: pointer;
    transition: all 0.15s;
}

.buy-period-option:hover {
    border-color: var(--zizq-bg-dark);
}

.buy-period-option-active {
    border-color: var(--zizq-bright-cyan);
    background: var(--zizq-bright-cyan);
    color: var(--zizq-text-inverted-on-dark);
}

.buy-period-option-active:hover {
    border-color: var(--zizq-bright-cyan);
}

.buy-period-label {
    font-size: 1.28rem;
    font-weight: 500;
}

.buy-period-price {
    font-size: 1.2rem;
}

.buy-period-option-active .buy-period-price {
    opacity: 0.85;
}

.buy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.36rem;
    color: var(--zizq-text);
    cursor: pointer;
}

.buy-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--zizq-border);
    border-radius: 4px;
    background: var(--zizq-bg);
    margin-top: 0.24rem;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

.buy-checkbox input[type="checkbox"]:checked {
    background: var(--zizq-bright-cyan);
    border-color: var(--zizq-bright-cyan);
}

.buy-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.buy-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 204, 136, 0.3);
}

.buy-price-summary {
    margin-top: 2.4rem;
    padding: 1.6rem;
    background: var(--zizq-code-background);
    border-radius: 8px;
}

.buy-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.buy-price-label {
    font-size: 1.44rem;
    font-weight: 500;
}

.buy-price-amount {
    font-size: 2.4rem;
    font-weight: 800;
}

.buy-price-renewal-row {
    margin-top: 0.4rem;
}

.buy-price-renewal-amount {
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
}

.buy-actions {
    margin-top: 1.6rem;
    padding-bottom: 6.4rem;
}

.form-submit {
    width: 100%;
    padding: 1.2rem 4rem;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--zizq-bg-dark);
    color: var(--zizq-text-on-dark-primary);
    transition: opacity 0.15s;
}

.form-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.buy-field-error input,
.buy-field-error select {
    border-color: var(--zizq-bright-magenta);
}

.buy-field-error input:focus,
.buy-field-error select:focus {
    box-shadow: 0 0 0 2px rgba(208, 0, 212, 0.2);
}

.buy-field-error-msg {
    color: var(--zizq-bright-magenta);
    font-size: 1.28rem;
    margin-top: 0.4rem;
}

.buy-loading,
.buy-error {
    text-align: center;
    padding: 6.4rem 0;
    color: var(--zizq-text-muted);
}

/* ---- Purchase Success ---- */
.success-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 4.8rem 0 6.4rem;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--zizq-bright-cyan);
    color: white;
    font-size: 3.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.4rem;
}

.success-page h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.success-details {
    text-align: left;
    background: var(--zizq-code-background);
    border-radius: 8px;
    padding: 1.6rem 2rem;
    margin: 3.2rem 0;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.56rem 0;
}

.success-detail-label {
    font-size: 1.36rem;
    color: var(--zizq-text-muted);
}

.success-detail-value {
    font-size: 1.36rem;
    font-weight: 500;
}

.success-license {
    text-align: left;
    margin: 2.4rem 0;
}

.success-license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.56rem;
}

.success-license-header label {
    font-size: 1.36rem;
    font-weight: 500;
    color: var(--zizq-text-muted);
}

.success-copy-btn {
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--zizq-border);
    border-radius: 4px;
    background: var(--zizq-bg);
    color: var(--zizq-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
}

.success-copy-btn:hover {
    border-color: var(--zizq-bg-dark);
    color: var(--zizq-text);
}

.success-license-key {
    width: 100%;
    height: 120px;
    padding: 1.2rem;
    border: 1px solid var(--zizq-border);
    border-radius: 6px;
    font-family: var(--zizq-font-mono);
    font-size: 1.2rem;
    resize: none;
    background: var(--zizq-bg);
    color: var(--zizq-text);
    word-break: break-all;
}

.success-actions {
    margin: 2.4rem 0;
}

.success-download {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    background: var(--zizq-bg-dark);
    color: var(--zizq-text-on-dark-primary) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.success-download:hover {
    opacity: 0.9;
}

.success-note {
    font-size: 1.36rem;
    color: var(--zizq-text-muted);
    margin-top: 2.4rem;
}

/* ---- 404 ---- */
.not-found {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 9.6rem var(--zizq-page-padding);
    text-align: center;
}

.not-found h1 {
    font-size: 6.4rem;
    font-weight: 800;
    color: var(--zizq-text-muted);
}

/* ---- Docs Index ---- */
.docs-hero {
    padding: 4rem 0 4rem;
}

.docs-hero-compact {
    padding-bottom: 1.6rem;
}

.check-email {
    padding: 6.4rem 0;
    text-align: center;
}

.check-email h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.check-email p {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.check-email-icon {
    color: var(--zizq-bright-cyan);
}

.check-email-icon-expired {
    color: var(--zizq-text-muted);
}

.docs-hero h1 {
    letter-spacing: -0.02em;
    margin-bottom: 2.4rem;
}

.docs-intro-text p {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.docs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.4rem;
    margin-bottom: 4rem;
}

.docs-card {
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--zizq-text);
    transition: box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 2px 8px rgba(5, 0, 101, 0.06);
}

.docs-card:hover {
    box-shadow: 0 4px 16px rgba(5, 0, 101, 0.12);
    border-color: var(--zizq-bg-dark);
}

.docs-card-icon {
    font-size: 1.8rem;
    color: var(--zizq-text-muted);
    margin-bottom: 1.2rem;
}

.docs-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
}

.docs-card p {
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
    margin: 0;
    flex-grow: 1;
}

.docs-card code {
    font-family: var(--zizq-font-mono);
    background: var(--zizq-bg-alt);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.docs-card-wide {
    width: 100%;
    margin-bottom: 4rem;
}

.docs-card-link {
    display: block;
    margin-top: 1.6rem;
    font-size: 1.36rem;
    font-weight: 600;
    color: var(--zizq-link);
}

.docs-section {
    margin-bottom: 4rem;
    padding: 0 2.4rem;
}

.docs-section > h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
}

.docs-section > p {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
    margin-bottom: 1.6rem;
    line-height: 1.7;
}

.docs-client-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.docs-client-logo {
    height: 1.8rem;
    width: auto;
    vertical-align: middle;
    margin-right: 0.6rem;
}

.docs-client-list li a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.44rem;
    font-weight: 500;
    color: var(--zizq-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-client-list li a:hover {
    border-color: var(--zizq-bg-dark);
    box-shadow: 0 2px 8px rgba(5, 0, 101, 0.1);
}

.docs-coming-soon {
    display: inline-block;
    padding: 0.8rem 2.4rem;
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
}

.docs-help {
    margin-bottom: 6.4rem;
}

/* ---- About Page ---- */
.about-intro {
    display: flex;
    gap: 3.2rem;
    align-items: center;
    margin-bottom: 3.2rem;
}

.about-intro-image {
    flex-shrink: 0;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro-text {
    flex: 1;
}

.about-intro-text p {
    font-size: 1.6rem;
    color: var(--zizq-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.about-intro-text p:first-child {
    font-size: 1.8rem;
    color: var(--zizq-text);
    font-weight: 500;
}

@media (max-width: 600px) {
    .about-intro {
        flex-direction: column;
    }

    .about-intro-image {
        width: 200px;
    }
}

/* ---- Contact Page ---- */
.contact-channels {
    display: flex;
    gap: 2.4rem;
    margin-bottom: 4rem;
    padding: 0;
}

.contact-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.44rem;
    font-weight: 500;
    color: var(--zizq-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-channel:hover {
    border-color: var(--zizq-bg-dark);
    box-shadow: 0 2px 8px rgba(5, 0, 101, 0.1);
}

.contact-channel i {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
}

.contact-form {
    max-width: 480px;
    padding: 0;
    margin-bottom: 6.4rem;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-field {
    margin-bottom: 1.6rem;
}

.form-field label {
    display: block;
    font-size: 1.36rem;
    font-weight: 500;
    color: var(--zizq-text-muted);
    margin-bottom: 0.56rem;
}

.form-field .optional {
    font-weight: 400;
    font-style: italic;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.96rem 1.2rem;
    border: 1px solid var(--zizq-border);
    border-radius: 6px;
    font-size: 1.44rem;
    font-family: var(--zizq-font-sans);
    background: var(--zizq-bg);
    color: var(--zizq-text);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--zizq-bg-dark);
    box-shadow: 0 0 0 2px rgba(5, 0, 101, 0.15);
}

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

.form-row {
    display: flex;
    gap: 2rem;
}

.form-row .form-field {
    flex: 1;
}

.contact-success {
    padding: 0;
    margin-bottom: 6.4rem;
}

.contact-success h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.contact-success p {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .contact-channels {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ---- Account Management ---- */
.account-purchases {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.account-purchase {
    padding: 2rem 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 12px;
}

.account-purchase-expired {
    opacity: 0.5;
}

.account-purchase h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    text-transform: capitalize;
}

.account-purchase-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.36rem;
    color: var(--zizq-text-muted);
}

.account-purchase-meta li {
    margin-bottom: 0.4rem;
}

.account-purchase-meta i {
    width: 1.6rem;
    text-align: center;
    color: var(--zizq-text-muted);
}

.account-purchase-action {
    margin-top: 1.2rem;
}

.account-empty {
    font-size: 1.6rem;
    color: var(--zizq-text-muted);
    padding: 2.4rem 0;
}

.account-manage-link {
    background: none;
    border: none;
    color: var(--zizq-link);
    font-family: var(--zizq-font-sans);
    font-size: 1.36rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.account-manage-link:hover {
    text-decoration: underline;
}

/* ---- Client Library Cards ---- */
.client-cards {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 4rem;
}

.client-card {
    display: flex;
    align-items: flex-start;
    gap: 2.4rem;
    padding: 2.4rem;
    border: 1px solid var(--zizq-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--zizq-text);
    transition: box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 2px 8px rgba(5, 0, 101, 0.06);
}

.client-card:hover {
    box-shadow: 0 4px 16px rgba(5, 0, 101, 0.12);
    border-color: var(--zizq-bg-dark);
}

.client-card-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.client-card-logo img {
    width: 100%;
    height: auto;
}

.client-card-body {
    flex: 1;
    min-width: 0;
}

.client-card-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
}

.client-card-body p {
    font-size: 1.44rem;
    color: var(--zizq-text-muted);
    line-height: 1.7;
    margin: 0;
}

.client-card-body code {
    font-family: var(--zizq-font-mono);
    background: var(--zizq-bg-alt);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.client-card-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.2rem;
    font-size: 1.36rem;
    font-weight: 600;
}

.client-card-docs {
    color: var(--zizq-link);
    text-decoration: none;
}

.client-card-docs:hover {
    text-decoration: underline;
}

.client-card-gh {
    color: var(--zizq-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.client-card-gh:hover {
    color: var(--zizq-text);
}

@media (max-width: 480px) {
    .client-card {
        flex-direction: column;
        gap: 1.6rem;
    }

    .client-card-logo {
        width: 56px;
        height: 56px;
    }
}

/* ---- Site Footer ---- */
.site-footer {
    color: var(--zizq-text);
    padding: 4.8rem 0;
    margin-top: 6.4rem;
    border-top: 1px solid var(--zizq-border);
}

.site-footer-inner {
    max-width: var(--zizq-max-width);
    margin: 0 auto;
    padding: 0 var(--zizq-page-padding);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem;
}

.footer-column h4 {
    color: var(--zizq-text);
    font-size: 1.36rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.6rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin: 0 0 0.8rem;
}

.footer-column a {
    color: var(--zizq-text-muted);
    text-decoration: none;
    font-size: 1.44rem;
    transition: color 0.15s;
}

.footer-column a:hover {
    color: var(--zizq-text);
}

.footer-legal {
    margin-top: 4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--zizq-border);
    text-align: center;
    font-size: 1.36rem;
    color: var(--zizq-text-muted);
}

.footer-legal p {
    margin: 0 0 0.4rem;
}

.footer-abn {
    color: var(--zizq-text-muted);
    font-size: 1.28rem;
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
}
