
/* ------------------------------------------------------------
   Segment-specific hero overrides
   ------------------------------------------------------------ */

.landing-seg-hero-code {
    flex: 0 0 auto;
    max-width: 688px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.landing-seg-hero-code .landing-hero-code-pre {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

@media (max-width: 1024px) {
    .landing-seg-hero-code {
        max-height: 360px;
    }
}


.landing-seg-type-label {
    color: #93b5ff;
    background: rgba(99, 140, 241, 0.18);
    border: 1px solid rgba(99, 140, 241, 0.32);
}

/* ------------------------------------------------------------
   Code examples
   ------------------------------------------------------------ */

.landing-seg-examples {
    background: #fff;
    padding: 100px 48px;
}









/* ------------------------------------------------------------
   Field reference table
   ------------------------------------------------------------ */

.landing-seg-fields {
    background: #fff;
    padding: 100px 48px;
}


.landing-seg-table-wrap {
    max-width: 1248px;
    margin: 0 auto;
    overflow-x: auto;
}

.landing-seg-table {
    min-width: 936px;
}

.landing-seg-td-dt code {
    font-family: var(--landing-font-mono);
    font-size: var(--landing-font-table-code);
    color: var(--landing-text-dark);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.landing-seg-badge-required {
    display: inline-block;
    font-size: var(--landing-font-badge);
    font-weight: 600;
    font-family: ZatoMainFontMedium, sans-serif;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--landing-accent-green);
}

.landing-seg-badge-optional {
    display: inline-block;
    font-size: var(--landing-font-badge);
    font-weight: 600;
    font-family: ZatoMainFontMedium, sans-serif;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--landing-text-dark-muted);
}

.landing-seg-list-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    margin-left: 6px;
    background: rgba(59,130,246,0.1);
    color: var(--landing-accent-primary);
    border-radius: 4px;
}

.landing-seg-td-desc {
    color: var(--landing-text-dark-muted);
    line-height: 1.5;
}

.landing-seg-td-table code {
    font-family: var(--landing-font-mono);
    font-size: var(--landing-font-table-code);
    color: var(--landing-text-dark-muted);
}

.landing-seg-row-expandable {
    cursor: pointer;
}


.landing-seg-expand-icon {
    display: inline-block;
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.2s ease;
    color: var(--landing-text-dark-muted);
}

.landing-seg-expanded .landing-seg-expand-icon {
    transform: rotate(90deg);
}

.landing-seg-comp-row {
    background: #f8fafc;
}

.landing-seg-comp-row:hover {
    background: #f1f5f9 !important;
}

.landing-seg-comp-row td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #eef2f6 !important;
}

.landing-seg-td-comp-pos {
    color: var(--landing-text-dark-muted);
    opacity: 0.6;
    font-size: 0.85em;
}

.landing-seg-tree-indent {
    color: var(--landing-text-dark-muted);
    opacity: 0.45;
    font-family: var(--landing-font-mono);
    margin-right: 4px;
    margin-left: 16px;
}

.landing-seg-td-comp-name {
    white-space: nowrap;
}

.landing-seg-td-comp-name code {
    font-size: calc(var(--landing-font-table-code) - 1px);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}


/* ------------------------------------------------------------
   Playground
   ------------------------------------------------------------ */

.landing-seg-playground {
    padding: 80px 48px;
    max-width: 1296px;
    margin: 0 auto;
}

.landing-pg-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.landing-pg-demos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.landing-pg-demo-btn {
    padding: 8px 22px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: transparent;
    color: #52525b;
    font-size: 12.5px;
    font-family: ZatoMainFontMedium, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.landing-pg-demo-btn:hover {
    border-color: var(--landing-seg-pill-active);
    color: var(--landing-seg-pill-active);
}

.landing-pg-demo-btn.active {
    background: var(--landing-seg-pill-active);
    color: #fafafa;
    border-color: var(--landing-seg-pill-active);
}

.landing-pg-actions {
    display: flex;
    gap: 8px;
}

.landing-pg-history-btn,
.landing-pg-clear-btn {
    padding: 6px 14px;
    border: 1px solid var(--landing-border-light);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--landing-text-dark-muted);
    font-size: 13px;
    font-family: ZatoMainFontMedium, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.landing-pg-history-btn:hover,
.landing-pg-clear-btn:hover {
    background: #f1f5f9;
}

.landing-pg-history-count {
    font-size: 11px;
    background: var(--landing-accent-primary);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
    display: none;
}

.landing-pg-history-count.has-items {
    display: inline;
}

.landing-pg-history-dropdown {
    position: relative;
    background: #fff;
    border: 1px solid var(--landing-border-light);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.landing-pg-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: ZatoMainFontMedium, sans-serif;
    color: var(--landing-text-dark-muted);
    border-bottom: 1px solid var(--landing-border-light);
}

.landing-pg-history-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--landing-text-dark-muted);
    padding: 0 4px;
}

.landing-pg-history-entry {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--landing-font-mono);
    color: var(--landing-text-dark);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-pg-history-entry:hover {
    background: #f8fafc;
}

.landing-pg-history-entry-preview {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-pg-history-entry-time {
    font-family: ZatoMainFontMedium, sans-serif;
    font-size: 11px;
    color: var(--landing-text-dark-muted);
    margin-left: 12px;
    white-space: nowrap;
}

.landing-pg-history-clear-all {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    border: none;
    background: none;
    color: var(--landing-text-dark-muted);
    font-size: 12px;
    cursor: pointer;
}

.landing-pg-history-clear-all:hover {
    color: #ef4444;
}

.landing-pg-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--landing-border-light);
    border-radius: 8px;
    font-family: var(--landing-font-mono);
    font-size: 13px;
    color: var(--landing-text-dark);
    background: #f8fafc;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.landing-pg-input:focus {
    border-color: var(--landing-accent-primary);
    background: #fff;
}

.landing-pg-output {
    margin-top: 16px;
}

.landing-pg-output-status {
    font-size: 13px;
    font-family: ZatoMainFontMedium, sans-serif;
    padding: 8px 0;
    color: var(--landing-text-dark-muted);
}

.landing-pg-output-status .found {
    color: var(--landing-accent-green);
    font-weight: 600;
}

.landing-pg-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: var(--landing-bg-dark);
    align-items: stretch;
    overflow: hidden;
}

.landing-pg-parsed,
.landing-pg-python {
    min-height: 100px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.landing-pg-parsed-tree,
.landing-pg-python .landing-code-pre {
    flex: 1;
}

.landing-pg-parsed {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-pg-parsed-tree {
    padding: 12px 16px;
    font-family: var(--landing-font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    background: var(--landing-bg-dark);
    color: var(--landing-text-light);
}

.landing-pg-python .landing-code-pre {
    flex: 1;
    overflow-x: auto;
}

.landing-pg-toggle-empty {
    min-width: 150px;
}

.landing-pg-toggle-empty.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--landing-text-light);
}

.landing-pg-parsed-field {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.landing-pg-parsed-pos {
    color: var(--landing-text-very-muted);
    min-width: 30px;
    text-align: right;
}

.landing-pg-parsed-name {
    color: #93c5fd;
}

.landing-pg-parsed-eq {
    color: var(--landing-text-muted);
}

.landing-pg-parsed-val {
    color: #86efac;
}

.landing-pg-parsed-empty {
    opacity: 0.3;
}

.landing-pg-parsed-field.landing-highlight {
    background: rgba(59, 130, 246, 0.12);
    border-radius: 3px;
}

.landing-pg-python .landing-code-line.landing-highlight {
    background: rgba(59, 130, 246, 0.12);
    border-radius: 3px;
}

.landing-pg-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.landing-pg-dot.populated {
    background: var(--landing-accent-green);
}

/* ------------------------------------------------------------
   Segment-specific responsive
   ------------------------------------------------------------ */

@media (max-width: 768px) {
    .landing-seg-examples,
    .landing-seg-fields {
        padding-left: 24px;
        padding-right: 24px;
    }
}
