/* Habit Systems landing-page funnel. Keep these overrides scoped to this page. */
.habit-plans { background: #c7b7df; }
.habit-plan-studio { max-width: 1160px; margin: 2.4rem auto 0; background: transparent; }
.habit-plan-return { margin: 0; padding: .35rem 1.25rem .8rem; color: #34283f; font-size: clamp(.95rem,1.5vw,1.15rem); font-weight: 800; text-align: center; }
.habit-plan-return::before { content: "✓"; display: inline-grid; width: 1.55rem; height: 1.55rem; margin-right: .5rem; place-items: center; color: #34283f; background: #ffdc70; border-radius: 50%; }
.habit-plan-return[hidden] { display: none; }
.habit-plan-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; padding: 1rem; border-bottom: 1px solid rgba(77,55,97,.18); }
.habit-plan-option { display: grid; gap: .28rem; min-width: 0; padding: 1.1rem 1.25rem; border: 1px solid transparent; border-radius: 0; background: transparent; color: #34283f; font: inherit; text-align: left; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.habit-plan-option:hover { transform: translateY(-2px); }
.habit-plan-option[aria-pressed="true"] { border-color: #e5bc50; border-radius: 1.2rem; background: #ffdc70; box-shadow: 0 7px 18px rgba(71,48,91,.14); }
.habit-plan-option[aria-pressed="true"] span { color: #49364f; }
.habit-plan-option span, .habit-plan-step, .habit-plan-summary span { color: #765495; font-size: .72rem; font-weight: 900; letter-spacing: .11em; }
.habit-plan-option strong { font-size: clamp(1.15rem,2vw,1.65rem); line-height: 1.08; }
.habit-plan-option em { font-size: 1.05rem; font-style: normal; font-weight: 900; }
.habit-plan-picker { padding: clamp(1.25rem,3.5vw,2.8rem); }
.habit-plan-picker-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .5rem; }
.habit-plan-picker-heading h3 { margin: .35rem 0 0; font-size: clamp(1.45rem,3vw,2.2rem); line-height: 1.1; }
.habit-plan-picker-heading p { margin: 0; font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.habit-plan-feedback { margin-bottom: 1.3rem; }
.habit-plan-feedback p { margin: 0 0 .55rem; color: #49364f; font-size: .95rem; font-weight: 800; }
.habit-plan-meter { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(77,55,97,.2); }
.habit-plan-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: #604080; transition: width .25s ease; }
.habit-plan-complete .habit-plan-feedback p { color: #35243e; }
.habit-plan-complete .habit-plan-meter span { background: #e5a900; }
.habit-plan-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.habit-plan-product { position: relative; display: grid; grid-template-columns: 84px minmax(0,1fr) 25px; align-items: center; gap: .65rem; min-width: 0; min-height: 105px; padding: .55rem .8rem; border: 0; border-bottom: 1px solid rgba(77,55,97,.2); background: transparent; color: #2d2931; font: inherit; text-align: left; cursor: pointer; transition: transform .2s,border-color .2s,box-shadow .2s; }
.habit-plan-product:hover { transform: translateY(-3px); }
.habit-plan-product[aria-pressed="true"] { border-color: #73548b; box-shadow: inset 0 -1px 0 #73548b; }
.habit-plan-product img { width: 84px; height: 88px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(38,28,50,.12)); }
.habit-plan-product span { font-size: clamp(.88rem,1.25vw,1.08rem); font-weight: 900; line-height: 1.15; }
.habit-plan-product b { display: grid; place-items: center; width: 25px; height: 25px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.habit-plan-product[aria-pressed="true"] b { background: #604080; color: #fff; border-color: #604080; }
.habit-plan-product:disabled { cursor: default; transform: none; }
.habit-plan-product:disabled:not([aria-pressed="true"]) { opacity: .48; }
.habit-plan-summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 1.5rem 0 1rem; padding: 1.2rem 0; border-top: 1px solid #ddd1e4; border-bottom: 1px solid #ddd1e4; }
.habit-plan-summary p { margin: .35rem 0 0; font-weight: 800; line-height: 1.3; }
.habit-plan-total { flex: none; text-align: right; }.habit-plan-total strong { display: block; margin-top: .25rem; font-size: 1.8rem; line-height: 1; }
.habit-plan-action { display: block; width: min(100%,360px); min-height: 3.3rem; margin-left: auto; border: 0; border-radius: 999px; background: #604080; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.habit-plan-action:disabled { background: #ddd6e5; color: #5e5665; cursor: not-allowed; }
.habit-plan-action:not(:disabled):hover { background: #50326f; }
.habit-plan-note { max-width: 750px; margin: 1.3rem auto 0; text-align: center; font-size: .88rem; line-height: 1.5; }
.habit-plan-option:focus-visible,.habit-plan-product:focus-visible,.habit-plan-action:focus-visible { outline: 3px solid #604080; outline-offset: 3px; }
@media (max-width: 1100px) {
    .habit-plan-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.habit-systems-page .hero-section {
    min-height: min(780px, calc(100svh - 90px));
    padding-bottom: 3rem;
}

.habit-systems-page .hero-content {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    max-width: 1260px;
}

.habit-systems-page .hero-left { max-width: 570px; }
.habit-systems-page .hero-left h1 {
    font-size: clamp(3.4rem, 6vw, 6.3rem);
    line-height: 0.93;
    letter-spacing: -0.055em;
}

.habit-eyebrow {
    display: inline-block;
    margin-bottom: 1.15rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.habit-systems-page .hero-left p {
    max-width: 28rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.habit-systems-page .hero-actions { margin-top: 2rem; }
.habit-systems-page .hero-actions .btn-primary {
    text-decoration: none;
    padding: 0.95rem 1.4rem;
}

.habit-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.25rem;
}

.habit-text-link:hover,
.habit-text-link:focus-visible { color: #694899; }

.habit-systems-page .problem-section {
    background: linear-gradient(145deg, #fffaf1, #f6ecfa);
}

.habit-systems-page .problem-section .section-header { max-width: 780px; }
.habit-systems-page .problem-section .section-header p { max-width: 630px; margin-inline: auto; }
.habit-systems-page .problem-icons {
    width: min(100%, 930px);
    margin-top: 2.4rem;
}

.habit-pain-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.habit-pain-points li {
    border: 1px solid rgba(45, 42, 50, 0.2);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.habit-systems-page .product-section {
    max-width: 1230px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.habit-systems-page .product-copy p { max-width: 31rem; margin-bottom: 1.5rem; }
.habit-solution-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 350px;
    border-radius: 2rem;
    background: radial-gradient(circle at center, #ffefd1, #e5d8f5 72%);
}

.habit-solution-art img {
    display: block;
    width: min(100%, 570px);
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(45, 42, 50, 0.16));
}

.habit-art-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 900;
}

.habit-systems-page .benefits-section {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.habit-systems-page .benefit-card h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.habit-systems-page .benefit-card p { max-width: 25rem; }

.habit-systems-page .steps-section {
    background: linear-gradient(145deg, #f4eafb, #fdf6e8);
}

.habit-visual-steps {
    position: relative;
    display: grid;
    gap: 1.25rem;
    max-width: 790px;
    margin: 0 auto;
    padding: 0 0 0 5rem;
    list-style: none;
}

.habit-visual-steps::before {
    content: "";
    position: absolute;
    top: 6.4rem;
    bottom: 6.4rem;
    left: 1.25rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(#d5bae6, #c7b7df 38%, #e4c79b 75%, #ddb48c);
}

.habit-visual-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.1rem, 4vw, 3rem);
    min-width: 0;
    min-height: 205px;
    text-align: left;
}

.habit-visual-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
}

.habit-visual-step:nth-child(even) .habit-step-art { order: 2; }
.habit-visual-step:nth-child(even) .habit-step-copy { order: 1; }

.habit-step-copy {
    position: relative;
    z-index: 1;
}

.habit-step-art {
    display: grid;
    place-items: center;
    min-height: 205px;
}

.habit-step-art img {
    display: block;
    width: min(100%, 250px);
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0.8rem 0.75rem rgba(80, 53, 74, 0.09));
}

.habit-step-number {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: -5rem;
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #fffaf2;
    color: #7854a4;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 0.4rem 0.9rem rgba(80, 53, 74, 0.11);
    transform: translateY(-50%);
}

.habit-visual-step h3 {
    margin: 0.65rem 0 0.3rem;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.habit-systems-page .habit-visual-step p {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    line-height: 1.45;
}

.habit-preview-section {
    background: #ece2f4;
}

.habit-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    max-width: 1220px;
    margin-inline: auto;
}

.habit-preview-card {
    display: block;
    overflow: hidden;
    padding: 0.6rem;
    border-radius: 1.2rem;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 1rem 2rem rgba(45, 42, 50, 0.11);
    transition: transform 0.2s ease;
}

.habit-preview-card:hover,
.habit-preview-card:focus-visible { transform: translateY(-5px); }
.habit-preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.75rem;
}

.habit-preview-card > span {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 0.55rem 0.55rem;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.035em;
}

.habit-systems-page .habit-preview-note {
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.85rem;
}

.habit-systems-page .packs-section { padding-top: clamp(4rem, 7vw, 6rem); }
.habit-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    max-width: 1220px;
    margin: 0 auto;
}

.habit-product-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
    min-height: 315px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.6rem;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 1rem 2.4rem rgba(45, 42, 50, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.habit-product-card:hover,
.habit-product-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 1.4rem 2.9rem rgba(45, 42, 50, 0.16);
    outline: 3px solid rgba(95, 63, 145, 0.35);
    outline-offset: 2px;
}

.habit-product-art {
    position: relative;
    min-width: 0;
    min-height: 290px;
}

.habit-product-character {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.8rem 0.3rem 0.2rem;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 0.8rem 0.75rem rgba(45, 42, 50, 0.15));
}

.habit-product-peek {
    position: absolute;
    z-index: 2;
    right: -0.35rem;
    bottom: 0.85rem;
    width: clamp(84px, 9.5vw, 120px);
    aspect-ratio: 4 / 3;
    border: 4px solid white;
    border-radius: 0.45rem;
    object-fit: cover;
    box-shadow: 0 0.65rem 1.3rem rgba(45, 42, 50, 0.2);
    transform: rotate(5deg);
}

.habit-product-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 1.7rem 1.7rem 1.7rem 1rem;
}

.habit-product-number {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.habit-systems-page .habit-product-question {
    margin: 1.1rem 0 0.35rem;
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
    font-weight: 800;
    line-height: 1.25;
    color: rgba(45, 42, 50, 0.75);
}

.habit-product-copy h3 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.habit-systems-page .habit-product-outcome {
    margin: 0 0 1.2rem;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.35;
    color: rgba(45, 42, 50, 0.78);
}

.habit-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem;
    margin-top: auto;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(45, 42, 50, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
    font-weight: 900;
}

.habit-product-card:hover .habit-product-cta,
.habit-product-card:focus-visible .habit-product-cta { background: #ffdc70; }
.habit-systems-page .contact-section {
    background: linear-gradient(135deg, #fff7e5, #e9def7);
    padding: clamp(3.2rem, 7vw, 5rem) 1.5rem;
}

.habit-contact-link {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 1.2rem auto 0;
    color: var(--text-main);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .habit-systems-page .hero-content,
    .habit-systems-page .product-section { grid-template-columns: 1fr; }
    .habit-systems-page .product-copy { max-width: 700px; margin-inline: auto; text-align: center; }
    .habit-systems-page .product-copy p { margin-inline: auto; }
}

@media (max-width: 800px) {
    .habit-plan-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .habit-product-grid { grid-template-columns: 1fr; max-width: 560px; }
    .habit-product-card { min-height: 300px; }
}

@media (max-width: 700px) {
    .habit-plan-studio { border-radius: 0; }
    .habit-plan-switch { grid-template-columns: 1fr 1fr 1fr; gap: .25rem; padding: .45rem; }
    .habit-plan-option { gap: .25rem; padding: .85rem .45rem; text-align: center; }
    .habit-plan-option span { font-size: .56rem; letter-spacing: .03em; }
    .habit-plan-option strong { font-size: .91rem; }
    .habit-plan-option em { font-size: .85rem; }
    .habit-plan-picker-heading { align-items: start; flex-direction: column; gap: .4rem; }
    .habit-plan-products { gap: .55rem; }
    .habit-plan-product { grid-template-columns: 1fr 23px; grid-template-rows: 95px auto; gap: .2rem; min-height: 148px; padding: .5rem; }
    .habit-plan-product img { grid-column: 1 / -1; width: 100%; height: 95px; }
    .habit-plan-product span { font-size: .85rem; }
    .habit-plan-product b { width: 23px; height: 23px; }
    .habit-plan-summary { gap: .7rem; }
    .habit-plan-summary p { font-size: .86rem; }
    .habit-plan-total strong { font-size: 1.35rem; }
    .habit-plan-action { width: 100%; }
    .habit-systems-page .hero-section { min-height: auto; padding-top: 3.5rem; }
    .habit-systems-page .hero-content { gap: 1.2rem; }
    .habit-systems-page .hero-left h1 { font-size: clamp(3.1rem, 12vw, 4.5rem); }
    .habit-systems-page .hero-center { width: min(82vw, 480px); }
    .habit-systems-page .hero-image { width: min(72vw, 410px); }
    .habit-systems-page .problem-section .section-header p { max-width: 30rem; }
    .habit-systems-page .product-section { gap: 2rem; }
    .habit-solution-art { min-height: 280px; }
    .habit-solution-art img { max-height: 300px; }
    .habit-preview-grid { grid-template-columns: 1fr; max-width: 520px; }
    .habit-preview-card img { aspect-ratio: 4 / 2.8; }
    .habit-visual-steps { gap: 0.6rem; padding-left: 3.7rem; }
    .habit-visual-steps::before { left: 1.05rem; top: 4.7rem; bottom: 4.7rem; }
    .habit-visual-step,
    .habit-visual-step:nth-child(even) {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        gap: clamp(0.8rem, 3vw, 1.5rem);
        min-height: 150px;
    }
    .habit-visual-step:nth-child(even) .habit-step-art,
    .habit-visual-step:nth-child(even) .habit-step-copy { order: initial; }
    .habit-step-art { min-height: 135px; }
    .habit-step-art img { height: 132px; }
    .habit-step-number { left: -3.7rem; width: 2.1rem; height: 2.1rem; font-size: 0.76rem; }
    .habit-visual-step h3 { font-size: clamp(1.2rem, 5vw, 1.55rem); }
    .habit-systems-page .habit-visual-step p { font-size: 0.88rem; }
    .habit-product-card { grid-template-columns: 1fr; min-height: 0; }
    .habit-product-art { min-height: 200px; }
    .habit-product-character { width: 62%; left: 19%; }
    .habit-product-peek { right: 1.4rem; bottom: 0.7rem; width: 110px; }
    .habit-product-copy { padding: 0.4rem 1.35rem 1.35rem; }
    .habit-product-copy h3 { font-size: clamp(1.6rem, 7vw, 2rem); }
    .habit-product-cta { margin-top: 0.2rem; }
}

@media (max-width: 600px) {
    .habit-plan-switch { grid-template-columns: 1fr; gap: .35rem; padding: .55rem; }
    .habit-plan-option { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .15rem .6rem; padding: .7rem .9rem; text-align: left; }
    .habit-plan-option span { grid-column: 1 / -1; font-size: .65rem; }
    .habit-plan-option strong { font-size: 1rem; }
    .habit-plan-option em { font-size: .95rem; }
}

@media (max-width: 360px) {
    .habit-plan-products { grid-template-columns: 1fr; }
    .habit-plan-product { grid-template-columns: 68px minmax(0,1fr) 23px; grid-template-rows: auto; min-height: 90px; }
    .habit-plan-product img { grid-column: auto; width: 68px; height: 75px; }
}

@media (prefers-reduced-motion: reduce) {
    .habit-preview-card { transition: none; }
}
