@font-face {
    font-family: Poppins;
    src: url('Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Poppins;
    src: url('Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600 800;
    font-display: swap;
}
:root {
    font-family: Poppins, system-ui, sans-serif;
    color: #101335;
    background: #faf9ff;
    line-height: 1.55;
    --gradient: linear-gradient(120deg, #294de4, #7814d9);
}
* { box-sizing: border-box; }
body { margin: 0; font: inherit; color: inherit; background: transparent; }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    padding: 1rem clamp(1rem, 8vw, 8rem);
    border-bottom: 1px solid #eeebf6;
}
.site-header img { display: block; max-width: 100%; height: auto; }
.button {
    display: inline-block;
    border: 1px solid #b5a7e1;
    background: #fff;
    color: #22145c;
    text-decoration: none;
    font: inherit;
    font-weight: 650;
    padding: .55rem 1rem;
    border-radius: 12px;
    cursor: pointer;
}
.primary { background: var(--gradient); color: #fff; border: 0; }
.panel {
    max-width: 32rem;
    margin: 3rem auto;
    padding: clamp(1.25rem, 5vw, 2.5rem);
    border: 1px solid #eeebf6;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 42px #2316570d;
}
.fields { display: grid; gap: 1rem; }
.fields label { display: grid; gap: .3rem; }
.fields input:not([type="hidden"]) {
    width: 100%;
    border: 1px solid #b5a7e1;
    border-radius: .65rem;
    padding: .65rem .75rem;
    font: inherit;
}
:focus-visible { outline: 3px solid #2755ca; outline-offset: 3px; }
main { min-height: 65vh; }
a { color: #541dc3; }
h2, h3 { font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 5vw, 2.85rem); }
h2 span { color: #6922d5; }
section[id] { scroll-margin-top: 1rem; }
.site-header { padding-inline: clamp(1rem, 4.5vw, 5rem); flex-wrap: wrap; }
.site-nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; }
.site-nav a { color: inherit; text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover { color: #641fd0; }
.site-footer { padding: 2.5rem clamp(1rem, 5vw, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; background: #131633; color: #fff; }
.site-footer a { color: #fff; }
.wrap { width: min(100% - 2rem, 74rem); margin: 0 auto; padding-block: clamp(2rem, 4vw, 4rem); }
.wrap > section + section { margin-top: 3.5rem; }
.price { font-weight: 700; font-size: 1.65rem; color: #5523c3; }
.price small { font-size: .8rem; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.offer, .preview-panel { background: #fff; border: 1px solid #e2dbf4; border-radius: 1rem; padding: 1.4rem; box-shadow: 0 8px 25px #24164b0a; }
.offer { display: flex; flex-direction: column; align-items: start; }
.offer .button { margin-top: auto; }
.featured { border-color: #7942e5; background: #f7f2ff; }
.offer h3 { font-size: 1.25rem; }
details { border-bottom: 1px solid #dad1eb; padding: .8rem; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: .6rem 0 0; }
.editor { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1rem, 5vw, 4rem); }
.editor nav { margin-bottom: 1.2rem; }
.preview-panel { position: sticky; top: 1rem; }
.design-preview { position: relative; aspect-ratio: 89.6 / 57.98; border-radius: .8rem; background: center / cover #161834; color: #fff; overflow: hidden; margin: 1rem 0; }
.design-preview .cut, .design-preview .safe { position: absolute; pointer-events: none; }
.design-preview .cut { inset: 3.45% 2.23%; border: 1px dashed #ff9bca; }
.design-preview .safe { inset: calc(var(--inset) * 100% / 57.98) calc(var(--inset) * 100% / 89.6); border: 1px dashed #8af4ff; }
.hide-guides :is(.safe, .cut) { display: none; }
.design-copy { position: absolute; left: calc((var(--inset) + (44.6 - 2 * var(--inset)) * var(--x) / 100) * 100% / 89.6); top: calc((var(--inset) + (31.98 - 2 * var(--inset)) * var(--y) / 100) * 100% / 57.98); width: 48%; overflow: hidden; white-space: nowrap; }
.design-copy > :is(strong, span) { display: block; text-overflow: ellipsis; overflow: hidden; }
.design-copy img { width: 32%; height: 2rem; object-fit: contain; object-position: left; }
.qr-placeholder { position: absolute; right: 6%; bottom: 9%; width: 22%; aspect-ratio: 1; background: white; color: #161834; text-align: center; align-content: center; font-weight: 700; }
.fields :is(select, textarea, input[type=file]) { width: 100%; border: 1px solid #b5a7e1; border-radius: .65rem; padding: .55rem; background: white; }
.fields input:is([type=checkbox],[type=color],[type=range]) { width: auto; padding: 0; }
.fields fieldset { display: grid; gap: .65rem; }
.fields fieldset[hidden] { display: none; }
.fields label:has(input[type=checkbox]) { display: block; }
.totals { margin: 1rem 0; display:grid; grid-template-columns: 1fr auto; gap: .5rem; }
.flash { padding: .8rem 1rem; background: #e4f4e9; margin: 1rem auto; width: min(100% - 2rem, 74rem); border-radius: .6rem; }
.flash.error { background: #fce5eb; }
@media (max-width: 800px) {
    .site-nav { order: 2; width: 100%; overflow: auto; flex-wrap: nowrap; white-space: nowrap; }
    .editor { grid-template-columns: 1fr; }
    .preview-panel { position: static; grid-row: 1; }
}
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }
.customer-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); }
.customer-nav { display: grid; align-content: start; gap: .35rem; }
.customer-nav a { padding: .65rem .85rem; border-radius: .6rem; text-decoration: none; }
.customer-nav a[aria-current] { background: #eae0ff; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin: 1.4rem 0; }
.metrics article, .data-card { padding: 1rem; background: white; border: 1px solid #e6def3; border-radius: .9rem; }
.metrics article strong, .metrics article span { display: block; }
.metrics article strong { font-size: 1.7rem; color: #551dcc; }
.data-card { margin: 1rem 0; }
.data-card .actions { margin-top: .6rem; }
.metric-chart { max-height: 18rem; overflow: auto; list-style: none; padding: 0; }
.metric-chart li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 3rem; gap: .8rem; align-items: center; margin: .25rem 0; }
.metric-chart meter { width: 100%; height: 1.2rem; }
.digital-profile { position: relative; overflow: hidden; }
.profile-cover { background: linear-gradient(155deg, #171844, var(--profile-color, #5c27ca)); height: 7rem; border-radius: .75rem; margin-bottom: 1.1rem; }
.profile-photo { object-fit: cover; border-radius: 100%; background: #efecfc; }
.profile-logo { max-width: 7rem; max-height: 3rem; object-fit: contain; }
.digital-profile .fields { margin-top: 1rem; }
@media (max-width: 800px) {
    .customer-layout { grid-template-columns: minmax(0, 1fr); }
    .customer-nav { display: flex; overflow: auto; white-space: nowrap; }
}
.article-copy { white-space: pre-line; max-width: 75ch; }
.cookie-banner { position: fixed; z-index: 10; inset: auto 1rem 1rem; max-width: 42rem; margin-inline: auto; background: white; border: 1px solid #e1d8ef; box-shadow: 0 12px 34px #26184a40; border-radius: 1rem; padding: 1rem; }
.design-preview.signature::after { content: ''; position: absolute; inset: auto 0 0; height: calc(var(--inset) * 50% / 57.98); background: var(--accent, #7050e7); }
.fields fieldset[data-profile-step] { padding: 1rem; border: 1px solid #e2dbf4; border-radius: .8rem; background: white; }
.fields fieldset[data-profile-step] legend { font-size: 1.15rem; font-weight: 650; }
[hidden] { display: none !important; }
.offer-image { width: 100%; height: auto; aspect-ratio: 20 / 11; border-radius: .7rem; object-fit: cover; margin-bottom: 1rem; }
.site-header { max-width: 94rem; margin: auto; padding-block: .7rem; gap: .55rem 1.4rem; }
.site-header .button { font-size: .875rem; padding: .4rem .75rem; }
.site-nav { gap: 1.5rem; }
.site-nav a { padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-color: #6922d5; }
.site-header .header-cart { border-radius: .75rem; font-size: 1.12rem; line-height: 1.3; }
.site-footer { display: block; padding-block: 1.8rem; background: #141a34; }
.footer-inner { width: min(100%, 82rem); margin: auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1rem; }
.footer-inner nav { display: grid; align-content: start; gap: .2rem; }
.footer-inner nav a, .footer-identity p { font-size: .82rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-identity img { display: block; filter: brightness(0) invert(1); }
.footer-identity p { margin-top: .35rem; }
@media (max-width: 630px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .site-nav { gap: .9rem; }
}
.offer h3 { display: flex; align-items: center; gap: .48rem; }
.offer h3 small { display: block; font-size: .72em; letter-spacing: 0; font-weight: 400; }
.offer-icon { width: 2rem; height: 2rem; flex: 0 0 auto; display: grid; place-items: center; font-size: 1.15rem; color: #4f19c5; border-radius: .6rem; background: #f1ebfc; }
.offer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); row-gap: 1.1rem; }
