.cpg-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.cpg-hero {
    margin-bottom: 1.5rem;
}

.cpg-kicker {
    margin: 0 0 .35rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .65;
}

.cpg-intro {
    max-width: 720px;
    margin-bottom: 0;
}

.cpg-step-card {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
}

.cpg-step-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.cpg-step-heading h3 {
    margin: 0 0 .25rem;
}

.cpg-step-heading p {
    margin: 0;
    opacity: .72;
}

.cpg-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}

.cpg-pattern-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cpg-pattern-option {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.cpg-pattern-option strong,
.cpg-pattern-option small {
    display: block;
}

.cpg-pattern-option small {
    margin-top: .2rem;
    opacity: .7;
}

.cpg-pattern-option--active {
    border-color: #111;
}

.cpg-pattern-option--coming {
    opacity: .5;
}

.cpg-unit-switch {
    display: inline-flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.cpg-unit-switch label {
    cursor: pointer;
}

.cpg-unit-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cpg-unit-switch span {
    display: inline-block;
    padding: .5rem .85rem;
    border: 1px solid #ccc;
    border-radius: 999px;
}

.cpg-unit-switch input:checked + span {
    border-color: #111;
    font-weight: 700;
}

.cpg-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cpg-form > label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
}

.cpg-input-with-unit {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cpg-input-with-unit input {
    flex: 1;
    min-width: 0;
    padding: .7rem;
    border: 0;
    outline: 0;
    font: inherit;
    background: transparent;
}

.cpg-unit-label {
    padding: 0 .75rem;
    opacity: .6;
    font-size: .9rem;
}

.cpg-primary-button,
.cpg-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: .85rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cpg-primary-button {
    grid-column: 1 / -1;
    border: 1px solid #111;
}

.cpg-message {
    margin: 0 0 1rem;
    min-height: 1.4em;
    font-weight: 600;
}

.cpg-preview-shell {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    background: #fafafa;
}

.cpg-preview svg {
    display: block;
    width: 100%;
    min-width: 760px;
    height: auto;
}

.cpg-final-outline {
    fill: none;
    stroke: #111;
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.cpg-internal {
    fill: none;
    stroke: #333;
    stroke-width: 1.2;
}

.cpg-apex {
    fill: #fff;
    stroke: #111;
    stroke-width: 1;
}

.cpg-notch {
    stroke: #111;
    stroke-width: 1.6;
}

.cpg-piece-label {
    font: 700 13px Arial, sans-serif;
    fill: #111;
    text-anchor: middle;
}

.cpg-purchase-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e5e5;
}

.cpg-purchase-panel p {
    margin: .25rem 0 0;
}

.cpg-buy-button {
    border: 1px solid #111;
    color: inherit;
}

.cpg-buy-button--disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .cpg-form,
    .cpg-pattern-picker {
        grid-template-columns: 1fr;
    }

    .cpg-purchase-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}
