/*
Theme Name: Phasi Blocksy Child
Theme URI: https://phasi.app
Description: Child theme for Blocksy customizations used by Phasi.
Author: Phasi
Author URI: https://phasi.app
Template: blocksy
Version: 1.0.9
Text Domain: phasi-blocksy-child
*/

:root {
    --phasi-color-text: #1c1b17;
    --phasi-color-muted: #6d6961;
    --phasi-color-subtle: #a4a097;
    --phasi-color-line: #e2dfd7;
    --phasi-color-panel: #fbfaf6;
    --phasi-color-soft: #f0efea;
    --phasi-color-accent: #1f1e1a;
    --phasi-color-accent-dark: #000000;
    --phasi-color-green: #c9eee6;
    --phasi-color-peach: #f5d6c6;
    --phasi-color-lilac: #dcd4f3;
    --phasi-color-cyan: #cbeff5;
    --phasi-color-mint: #c9efe9;
    --phasi-color-yellow: #f5df87;
    --phasi-shadow-sm: 0 1px 2px rgba(31, 30, 26, 0.04);
    --phasi-shadow-lg: 0 22px 70px rgba(31, 30, 26, 0.12);
    --phasi-focus-ring: 0 0 0 3px rgba(31, 30, 26, 0.12);
    --theme-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --theme-headings-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --theme-palette-color-1: var(--phasi-color-accent);
    --theme-palette-color-2: var(--phasi-color-accent-dark);
    --theme-palette-color-3: var(--phasi-color-muted);
    --theme-palette-color-4: var(--phasi-color-text);
    --theme-palette-color-5: var(--phasi-color-line);
    --theme-palette-color-6: var(--phasi-color-soft);
    --theme-palette-color-7: #fbfbfc;
    --theme-palette-color-8: #ffffff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #f6f5f0;
    color: var(--phasi-color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--phasi-color-accent);
    outline-offset: 2px;
    box-shadow: var(--phasi-focus-ring);
}

.entry-content a {
    color: var(--phasi-color-accent);
}

.entry-content a:hover {
    color: var(--phasi-color-accent-dark);
}

.phasi-site {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #f6f5f0;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 54px !important;
    border-bottom: 0;
    background: #f6f5f0;
    backdrop-filter: none;
}

[data-header*="type-1"] .ct-header .ct-container {
    width: min(1300px, 100%);
}

.ct-header .ct-menu-link {
    color: var(--phasi-color-text);
    font-size: 14px;
    font-weight: 480;
    text-transform: none;
}

.ct-header .ct-menu-link:hover,
.ct-header .current-menu-item > .ct-menu-link {
    color: var(--phasi-color-text);
}

.phasi-section {
    padding: clamp(80px, 8vw, 128px) 24px;
}

.phasi-section--tight {
    padding-top: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 80px);
}

.phasi-shell {
    width: min(1300px, 100%);
    margin: 0 auto;
}

.phasi-narrow {
    width: min(820px, 100%);
    margin: 0 auto;
}

.phasi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--phasi-color-muted);
    font-size: 13px;
    font-weight: 480;
    letter-spacing: 0;
}

.phasi-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #1f1e1a;
    box-shadow: 0 0 0 5px rgba(31, 30, 26, 0.08);
}

.phasi-hero {
    min-height: auto;
    padding: clamp(88px, 9vw, 142px) 24px 46px;
    display: block;
}

.phasi-hero__copy {
    text-align: left;
    width: min(1300px, calc(100vw - 48px));
    margin: 0 auto;
}

.phasi-hero h1,
.phasi-page-hero h1 {
    max-width: 630px;
    margin: 0;
    color: var(--phasi-color-text);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 500;
}

.phasi-page-hero h1 {
    font-size: clamp(44px, 6.5vw, 88px);
}

.phasi-lede {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--phasi-color-muted);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.5;
}

.phasi-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 28px;
}

.phasi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 999px;
    background: var(--phasi-color-text);
    color: #fff !important;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: var(--phasi-shadow-sm);
}

.phasi-button--secondary {
    background: #ebe9e3;
    border-color: #ebe9e3;
    color: var(--phasi-color-text) !important;
}

.phasi-demo-stage {
    position: relative;
    width: min(1300px, calc(100vw - 48px));
    min-height: 720px;
    margin: 56px auto 0;
    padding: clamp(78px, 7vw, 112px) clamp(42px, 5vw, 110px);
    border: 1px solid #ded9ce;
    border-radius: 4px;
    background:
        linear-gradient(160deg, rgba(246, 245, 240, 0.28), rgba(222, 214, 199, 0.76)),
        linear-gradient(28deg, #d8d0c0 0%, #f3efe5 36%, #c7d1cc 62%, #dad4c9 100%);
    overflow: hidden;
}

.phasi-demo-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(8deg, transparent 0 56%, rgba(118, 108, 89, 0.16) 57%, transparent 66%),
        linear-gradient(172deg, transparent 0 48%, rgba(255, 255, 255, 0.22) 49%, transparent 62%);
    opacity: 0.7;
    pointer-events: none;
}

.phasi-product-frame {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: min(1080px, 100%);
    border: 1px solid var(--phasi-color-line);
    border-radius: 11px;
    background: #fbfaf6;
    box-shadow: var(--phasi-shadow-lg);
    overflow-x: auto;
    overflow-y: hidden;
}

.phasi-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--phasi-color-line);
    background: #f4f2ec;
}

.phasi-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d1d6;
}

.phasi-window-title {
    margin-left: 8px;
    color: var(--phasi-color-muted);
    font-size: 13px;
}

.phasi-planner {
    display: grid;
    grid-template-columns: 300px minmax(620px, 1fr);
    min-height: 470px;
    overflow-x: auto;
}

.phasi-planner-sidebar {
    border-right: 1px solid var(--phasi-color-line);
    background: #f9f8f4;
}

.phasi-planner-head,
.phasi-task-row {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
}

.phasi-planner-head {
    height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid var(--phasi-color-line);
    color: var(--phasi-color-muted);
    font-size: 13px;
    font-weight: 650;
}

.phasi-task-row {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f2;
    font-size: 14px;
}

.phasi-task-row:nth-child(3) {
    background: #f3f3f5;
    font-weight: 650;
}

.phasi-status {
    color: var(--phasi-color-muted);
    font-size: 13px;
}

.phasi-timeline {
    min-width: 760px;
    background-image:
        linear-gradient(to right, #e2ded5 1px, transparent 1px),
        linear-gradient(to bottom, #eeeae1 1px, transparent 1px);
    background-size: 56px 100%, 100% 48px;
}

.phasi-palette {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    height: 58px;
    border-bottom: 1px solid var(--phasi-color-line);
    background: #fbfaf6;
}

.phasi-floating-panel {
    position: absolute;
    z-index: 2;
    right: clamp(30px, 4vw, 72px);
    bottom: 38px;
    width: min(360px, 32vw);
    padding: 22px;
    border: 1px solid #d8d3c9;
    border-radius: 10px;
    background: #fbfaf6;
    box-shadow: 0 20px 50px rgba(31, 30, 26, 0.16);
}

.phasi-floating-panel span {
    color: var(--phasi-color-muted);
    font-size: 13px;
}

.phasi-floating-panel strong {
    display: block;
    margin-top: 10px;
    color: var(--phasi-color-text);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 650;
}

.phasi-floating-panel p {
    margin: 12px 0 0;
    color: var(--phasi-color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.phasi-logo-row {
    width: min(1300px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 26px 0 clamp(64px, 7vw, 100px);
    text-align: center;
}

.phasi-logo-row p {
    margin: 0 0 24px;
    color: var(--phasi-color-text);
    font-size: 14px;
}

.phasi-logo-row div {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.phasi-logo-row span {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1ddd4;
    border-radius: 4px;
    background: #f0efea;
    color: var(--phasi-color-text);
    font-size: 20px;
    font-weight: 650;
}

.phasi-pill {
    min-width: 92px;
    padding: 5px 12px;
    border: 1px solid rgba(9, 9, 11, 0.09);
    border-radius: 7px;
    color: #323238;
    font-size: 12px;
    text-align: center;
    box-shadow: inset 0 -1px rgba(9, 9, 11, 0.04);
}

.phasi-pill--green,
.phasi-bar--green {
    background: var(--phasi-color-green);
}

.phasi-pill--peach,
.phasi-bar--peach {
    background: var(--phasi-color-peach);
}

.phasi-pill--lilac,
.phasi-bar--lilac {
    background: var(--phasi-color-lilac);
}

.phasi-pill--cyan,
.phasi-bar--cyan {
    background: var(--phasi-color-cyan);
}

.phasi-pill--mint,
.phasi-bar--mint {
    background: var(--phasi-color-mint);
}

.phasi-pill--yellow,
.phasi-bar--yellow {
    background: var(--phasi-color-yellow);
}

.phasi-bars {
    position: relative;
    height: 372px;
}

.phasi-bar {
    position: absolute;
    height: 22px;
    border: 1px solid rgba(9, 9, 11, 0.08);
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
}

.phasi-bar:nth-child(1) { top: 28px; left: 52px; width: 126px; }
.phasi-bar:nth-child(2) { top: 76px; left: 232px; width: 112px; }
.phasi-bar:nth-child(3) { top: 124px; left: 0; width: 176px; }
.phasi-bar:nth-child(4) { top: 124px; left: 356px; width: 168px; }
.phasi-bar:nth-child(5) { top: 172px; left: 660px; width: 126px; }
.phasi-bar:nth-child(6) { top: 220px; left: 472px; width: 164px; }

.phasi-section-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 560;
}

.phasi-section-copy {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--phasi-color-muted);
    font-size: 18px;
    line-height: 1.58;
}

.phasi-two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: start;
}

.phasi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.phasi-two-col .phasi-grid {
    grid-template-columns: 1fr;
}

.phasi-card {
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 4px;
    background: var(--phasi-color-panel);
    box-shadow: var(--phasi-shadow-sm);
}

.phasi-card h3 {
    margin: 0;
    color: var(--phasi-color-text);
    font-size: 19px;
    line-height: 1.25;
}

.phasi-card p {
    margin: 12px 0 0;
    color: var(--phasi-color-muted);
    font-size: 15px;
    line-height: 1.56;
}

.phasi-list {
    display: grid;
    gap: 12px;
    margin: 32px 0 0;
}

.phasi-list-item {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 4px;
    background: #fff;
}

.phasi-list-item strong {
    color: var(--phasi-color-text);
}

.phasi-list-item span {
    color: var(--phasi-color-muted);
    line-height: 1.55;
}

.phasi-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 42px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 4px;
    overflow: hidden;
    background: var(--phasi-color-line);
}

.phasi-feature-strip div {
    min-height: 132px;
    padding: 20px;
    background: #fff;
}

.phasi-feature-strip strong {
    display: block;
    color: var(--phasi-color-text);
    font-size: 15px;
}

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

.phasi-settings-preview {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 360px;
    margin-top: 40px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--phasi-shadow-sm);
}

.phasi-settings-sidebar {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border-right: 1px solid var(--phasi-color-line);
    background: #f7f7f8;
}

.phasi-settings-sidebar span,
.phasi-settings-row {
    min-height: 34px;
    border-radius: 7px;
    color: var(--phasi-color-muted);
    font-size: 13px;
}

.phasi-settings-sidebar span {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.phasi-settings-sidebar span:first-child {
    background: #fff;
    color: var(--phasi-color-text);
    box-shadow: var(--phasi-shadow-sm);
}

.phasi-settings-main {
    padding: 24px;
}

.phasi-settings-main h3 {
    margin: 0;
    color: var(--phasi-color-text);
    font-size: 20px;
}

.phasi-settings-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 92px;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
}

.phasi-slider {
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--phasi-color-accent) var(--value, 54%), #ececf0 var(--value, 54%));
}

.phasi-value {
    color: var(--phasi-color-text);
    font-weight: 650;
    text-align: right;
}

.phasi-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.phasi-risk-card {
    padding: 16px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 8px;
    background: #fcfcfd;
}

.phasi-risk-card b {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--phasi-color-text);
    font-size: 14px;
}

.phasi-risk-card b::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--risk-color, #23c36b);
}

.phasi-risk-card span {
    display: block;
    margin-top: 8px;
    color: var(--phasi-color-muted);
    font-size: 13px;
    line-height: 1.45;
}

.phasi-risk-card--yellow {
    --risk-color: #e8bd24;
}

.phasi-risk-card--red {
    --risk-color: #ef4444;
}

.phasi-data-table {
    margin-top: 38px;
    border: 1px solid var(--phasi-color-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.phasi-data-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1.4fr;
    gap: 18px;
    padding: 18px 20px;
    border-top: 1px solid var(--phasi-color-line);
    color: var(--phasi-color-muted);
    font-size: 14px;
}

.phasi-data-row:first-child {
    border-top: 0;
    background: #f7f7f8;
    color: var(--phasi-color-text);
    font-weight: 650;
}

.phasi-data-row strong {
    color: var(--phasi-color-text);
}

.phasi-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 42px;
}

.phasi-quote {
    padding: clamp(34px, 5vw, 56px);
    border: 1px solid var(--phasi-color-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--phasi-shadow-sm);
}

.phasi-quote p {
    margin: 0;
    color: var(--phasi-color-text);
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 720;
}

.phasi-muted-band {
    border-top: 1px solid var(--phasi-color-line);
    border-bottom: 1px solid var(--phasi-color-line);
    background: #efede7;
}

.phasi-manifesto {
    display: grid;
    gap: 8px;
    padding: clamp(42px, 7vw, 86px) 0;
    text-align: center;
}

.phasi-manifesto p {
    margin: 0;
    color: var(--phasi-color-text);
    font-size: clamp(36px, 6vw, 84px);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 760;
}

.phasi-manifesto p:first-child {
    color: var(--phasi-color-muted);
}

.phasi-page-hero {
    padding: clamp(84px, 9vw, 142px) 24px clamp(56px, 7vw, 96px);
    text-align: left;
    width: min(1300px, 100%);
    margin: 0 auto;
}

.phasi-footer-cta {
    text-align: center;
}

body.page .hero-section,
body.page .entry-header {
    display: none;
}

body.page .site-main > .ct-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page .entry-content {
    margin: 0;
}

body.page .entry-content > * {
    max-width: none;
}

@media (max-width: 900px) {
    .phasi-hero {
        min-height: auto;
    }

    .phasi-demo-stage {
        min-height: 560px;
        padding: 34px 20px;
    }

    .phasi-floating-panel {
        left: 42px;
        right: auto;
        bottom: 28px;
        width: min(320px, calc(100% - 84px));
    }

    .phasi-logo-row div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .phasi-two-col,
    .phasi-compare {
        grid-template-columns: 1fr;
    }

    .phasi-grid {
        grid-template-columns: 1fr;
    }

    .phasi-feature-strip,
    .phasi-risk-grid {
        grid-template-columns: 1fr 1fr;
    }

    .phasi-settings-preview {
        grid-template-columns: 1fr;
    }

    .phasi-settings-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--phasi-color-line);
    }

    .phasi-planner {
        grid-template-columns: 260px minmax(620px, 1fr);
    }
}

@media (max-width: 640px) {
    [data-header*="type-1"] .ct-header .ct-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .phasi-section,
    .phasi-hero,
    .phasi-page-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .phasi-hero {
        padding-top: 64px;
    }

    .phasi-hero__copy {
        width: min(100%, calc(100vw - 36px));
    }

    .phasi-hero h1,
    .phasi-page-hero h1 {
        font-size: 32px;
        line-height: 1.04;
        max-width: 300px;
    }

    .phasi-lede {
        font-size: 17px;
        max-width: 320px;
    }

    .phasi-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .phasi-button {
        width: min(260px, 100%);
    }

    .phasi-demo-stage {
        width: calc(100vw - 36px);
        min-height: 520px;
        margin-top: 42px;
        padding: 18px 0 112px 18px;
    }

    .phasi-product-frame {
        border-radius: 8px;
        width: calc(100vw - 72px);
    }

    .phasi-floating-panel {
        left: 18px;
        right: 18px;
        bottom: 18px;
        width: auto;
        padding: 16px;
    }

    .phasi-floating-panel strong {
        font-size: 18px;
    }

    .phasi-logo-row {
        width: calc(100vw - 36px);
    }

    .phasi-logo-row div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phasi-logo-row span {
        min-height: 62px;
        font-size: 15px;
    }

    .phasi-feature-strip,
    .phasi-risk-grid,
    .phasi-data-row {
        grid-template-columns: 1fr;
    }

    .phasi-settings-row {
        grid-template-columns: 1fr;
    }

    .phasi-value {
        text-align: left;
    }
}
