@font-face {
    font-family:Display;
    src:url('/assets/fonts/display.ttf') format('truetype');
    font-style:italic;
    font-weight:100 900;
    font-display:swap
}

@font-face {
    font-family:Manrope;
    src:url('/assets/fonts/ui.ttf') format('truetype');
    font-weight:200 800;
    font-display:swap
}

:root {
    --blue:#0045d7;
    --button-blue:#0757ea;
    --orange:#ff622d;
    --text:#181a22;
    --muted:#848893;
    --pill:#f1f1f2;
    --line:#cdd0d7;
    --background:#fff
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--background);
    color:var(--text);
    font-family:Manrope,Arial,sans-serif;
    font-size:15px;
    -webkit-font-smoothing:antialiased
}

button,input,textarea {
    font:inherit
}

button,a,label[for=reference] {
    -webkit-tap-highlight-color:transparent
}

button {
    cursor:pointer
}

a {
    color:inherit
}

button:disabled {
    cursor:default;
    opacity:.55
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,.mug-stage:focus-visible {
    outline:3px solid #ff622d;
    outline-offset:5px
}

button .icon {
    pointer-events:none
}

.icon {
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0
}

.svg-defs {
    position:absolute;
    width:0;
    height:0;
    overflow:hidden
}

.site-header {
    max-width:1600px;
    margin:auto;
    padding:24px 4.3% 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:72px
}

.brand {
    display:flex;
    gap:20px;
    align-items:center;
    color:var(--blue);
    font-size:24px;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap
}

.brand svg {
    flex-shrink:0
}

.site-header nav {
    display:flex;
    gap:45px;
    align-items:center;
    font-size:14px
}

.site-header nav a {
    text-decoration:none
}

.nav-contact {
    border:0;
    background:none;
    color:inherit;
    display:flex;
    align-items:center;
    gap:38px;
    padding:8px 0
}

.nav-contact .icon {
    width:19px
}

.hero {
    max-width:1600px;
    margin:0 auto;
    position:relative;
    display:grid;
    grid-template-columns:46% 54%;
    grid-template-rows:auto 1fr;
    padding:16px 4.3% 20px;
    min-height:850px;
    background-image:url('/assets/images/fabric.png');
    background-size:100% 100%;
    background-position:center;
    background-repeat:no-repeat;
    isolation:isolate
}

.intro {
    grid-column:1;
    grid-row:1;
    z-index:2;
    position:relative;
    padding-top:4px
}

h1 {
    margin:0 0 26px;
    color:var(--blue);
    font-family:Display,'Arial Narrow',Arial,sans-serif;
    font-weight:900;
    font-style:italic;
    line-height:.89;
    letter-spacing:-.065em;
    font-size:clamp(70px,10.2vw,163px);
    width:max-content;
    max-width:140%;
    transform:scaleX(.98);
    transform-origin:left
}

h1 span {
    white-space:nowrap;
    display:block
}

.intro-copy {
    font-size:clamp(20px,1.75vw,28px);
    line-height:1.42;
    letter-spacing:-.035em;
    margin:0 0 31px;
    max-width:650px
}

.composer {
    grid-column:1;
    grid-row:2;
    z-index:2;
    max-width:590px;
    align-self:start
}

.composer h2 {
    font-size:13px;
    font-weight:800;
    letter-spacing:.16em;
    margin:0 0 24px
}

.choice-row {
    padding:0;
    border:0;
    margin:0 0 24px;
    min-width:0;
    display:flex;
    align-items:center;
    gap:20px;
    position:relative
}

.choice-row legend {
    float:left;
    width:88px;
    font-size:14px;
    line-height:41px;
    flex-shrink:0;
    padding:0
}

.choices {
    display:flex;
    gap:9px;
    flex-wrap:wrap
}

.chip {
    border:0;
    background:var(--pill);
    color:var(--text);
    border-radius:100px;
    padding:11px 18px;
    min-height:42px;
    font-size:14px;
    white-space:nowrap;
    transition:background .16s,color .16s,transform .16s
}

.chip:hover {
    background:#e5e9ef;
    transform:translateY(-1px)
}

.chip.selected {
    background:var(--button-blue);
    color:#fff;
    font-weight:700
}

.recipient .choices {
    gap:6px
}

.recipient .chip {
    padding:11px 10px
}

.recipient .chip.selected {
    background:#ebedf3;
    color:var(--text)
}

.selection-dot {
    display:inline-block;
    width:13px;
    height:13px;
    border-radius:50%;
    background:var(--button-blue);
    vertical-align:-1px;
    margin-right:10px
}

.chip:not(.selected) .selection-dot {
    display:none
}

.text-label {
    display:block;
    font-size:14px;
    margin:6px 0 8px
}

textarea {
    display:block;
    width:100%;
    border:1px solid transparent;
    border-radius:18px;
    background:rgba(239,239,241,.83);
    padding:17px 20px;
    resize:vertical;
    min-height:108px;
    max-height:220px;
    font-size:17px;
    line-height:1.5;
    color:#41434d
}

textarea:focus {
    border-color:#0757ea
}

textarea::placeholder {
    color:#999
}

.upload-row {
    display:flex;
    align-items:center;
    gap:12px;
    margin:17px 0 24px;
    min-height:31px
}

.upload-button {
    display:flex;
    align-items:center;
    gap:13px;
    cursor:pointer;
    font-size:14px
}

.upload-button span {
    text-decoration:underline;
    text-underline-offset:3px
}

.upload-button .icon {
    width:25px;
    height:25px
}

#reference {
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    overflow:hidden
}

.upload-row:has(#reference:focus-visible) {
    outline:3px solid var(--orange);
    outline-offset:4px
}

.remove-upload {
    border:0;
    background:var(--pill);
    border-radius:50%;
    width:28px;
    height:28px;
    font-size:20px
}

.upload-preview {
    display:flex;
    align-items:center;
    gap:12px;
    margin:-10px 0 20px;
    color:var(--muted);
    font-size:12px
}

.upload-preview img {
    width:40px;
    height:40px;
    object-fit:cover;
    border-radius:8px
}

.upload-preview span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:350px
}

[hidden] {
    display:none!important
}

.button {
    border:0;
    border-radius:100px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    min-height:66px;
    padding:14px 34px;
    font-size:23px;
    font-weight:800;
    letter-spacing:-.035em;
    transition:transform .18s,box-shadow .18s,opacity .18s;
    text-decoration:none
}

.button:hover:not(:disabled) {
    transform:translateY(-2px);
    box-shadow:0 10px 26px #00000012
}

.button:active:not(:disabled) {
    transform:translateY(0)
}

.button-blue {
    background:var(--button-blue);
    color:#fff
}

.button-orange {
    background:var(--orange);
    color:#fff
}

.generate-button {
    min-width:365px
}

.form-note {
    font-size:12px;
    color:var(--muted);
    margin:12px 0 8px
}

.demo-note {
    font-size:11px;
    color:#858995;
    max-width:390px;
    line-height:1.5;
    margin:6px 0 0
}

.status {
    font-size:13px;
    color:var(--blue);
    line-height:1.5;
    min-height:20px;
    margin:9px 0 0
}

.status:empty {
    display:none
}

.status.error {
    color:#c23f25
}

.product {
    grid-column:2;
    grid-row:1/3;
    position:relative;
    align-self:stretch;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    padding-bottom:2px;
    z-index:1
}

.mug-stage {
    position:relative;
    width:116%;
    aspect-ratio:1;
    max-height:800px;
    margin-left:1%;
    margin-bottom:0;
    touch-action:pan-y;
    cursor:grab;
    user-select:none;
    -webkit-user-select:none
}

.mug-stage.dragging {
    cursor:grabbing
}

.mug-stage img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    pointer-events:none;
    filter:drop-shadow(0 18px 18px #00000005);
    opacity:1
}

.mug-stage img:not([src]) {
    visibility:hidden
}

.mug-loading {
    position:absolute;
    left:0;
    right:0;
    top:46%;
    text-align:center;
    color:var(--muted);
    font-size:14px
}

.handnote {
    position:absolute;
    right:0;
    top:48px;
    z-index:3;
    font-size:27px;
    line-height:1.16;
    font-style:italic;
    font-weight:600;
    color:var(--orange);
    transform:rotate(-10deg);
    text-align:right;
    letter-spacing:-.05em;
    pointer-events:none
}

.handnote span {
    display:block;
    padding-right:24px
}

.handnote svg {
    position:absolute;
    width:60px;
    height:60px;
    left:-48px;
    top:37px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.5;
    stroke-linecap:round;
    stroke-linejoin:round
}

.product-meta {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    margin:2px 0 21px;
    min-height:27px;
    font-size:12px;
    width:100%
}

.rotate-button {
    display:flex;
    align-items:center;
    gap:12px;
    border:0;
    background:none;
    padding:3px 0;
    color:var(--text);
    font-size:13px
}

.rotate-button .icon {
    width:26px;
    height:26px
}

.material {
    border-left:1px solid #b5b8c0;
    padding-left:25px;
    color:var(--muted);
    white-space:nowrap
}

.order-button {
    min-width:375px
}

.order-note {
    font-size:12px;
    color:var(--muted);
    margin:11px 0 0;
    text-align:center
}

.site-footer {
    margin:0 auto;
    max-width:1468px;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:25px;
    padding:17px 0 22px;
    font-size:13px;
    width:calc(100% - 8.6%)
}

.site-footer p {
    margin:0
}

.site-footer p:last-child {
    color:var(--muted)
}

.site-footer span {
    display:inline-block;
    margin:0 17px
}

.lead-dialog {
    border:0;
    border-radius:28px;
    padding:38px;
    width:min(490px,calc(100vw - 32px));
    box-shadow:0 30px 100px #00000025;
    color:var(--text);
    max-height:90dvh
}

.lead-dialog::backdrop {
    background:#12223d33;
    backdrop-filter:blur(5px)
}

.dialog-close {
    position:absolute;
    top:14px;
    right:17px;
    background:none;
    border:0;
    font-size:29px;
    color:var(--muted)
}

.lead-dialog h2 {
    font-size:30px;
    line-height:1.1;
    margin:10px 0 18px;
    color:var(--blue);
    letter-spacing:-.04em
}

.lead-dialog>p {
    font-size:14px;
    line-height:1.6;
    color:#717783;
    margin-bottom:24px
}

.lead-dialog label {
    display:block;
    font-size:13px;
    margin:14px 0 7px
}

.lead-dialog input {
    display:block;
    width:100%;
    border:1px solid #dce0e6;
    padding:14px 16px;
    border-radius:12px;
    font-size:16px
}

.lead-dialog .button {
    font-size:18px;
    min-height:56px;
    width:100%;
    margin-top:24px
}

.lead-dialog .status {
    margin:14px 0 0
}

@media(min-width:1600px) {
    .hero {
        min-height:955px
    }
    .mug-stage {
        max-height:785px
    }
    .site-footer {
        max-width:1462px
    }
}

@media(max-width:1399px) {
    .recipient .chip {
        padding:11px 6px;
        font-size:12px
    }
    .recipient .selection-dot {
        width:8px;
        height:8px;
        margin-right:6px
    }
}

@media(max-width:1000px) {
    .recipient .choices {
        display:grid;
        grid-template-columns:repeat(3,max-content)
    }
}

@media(max-width:1200px) {
    .hero {
        grid-template-columns:47% 53%;
        padding-top:16px;
        min-height:800px
    }
    h1 {
        font-size:9vw
    }
    .intro-copy {
        font-size:21px
    }
    .choice-row {
        display:block;
        margin-bottom:17px
    }
    .choice-row legend {
        float:none;
        width:auto;
        line-height:1.4;
        margin-bottom:10px
    }
    .composer h2 {
        margin-bottom:20px
    }
    .chip {
        font-size:12px;
        padding:10px 15px;
        min-height:38px
    }
    .choices {
        gap:6px
    }
    .generate-button {
        min-width:300px
    }
    .button {
        font-size:20px;
        min-height:60px
    }
    .mug-stage {
        width:120%;
        margin-bottom:8px
    }
    .product-meta {
        gap:15px;
        font-size:11px
    }
    .material {
        padding-left:15px
    }
    .handnote {
        font-size:23px;
        right:-4px
    }
    .order-button {
        min-width:325px
    }
    .order-note {
        font-size:11px
    }
}

@media(max-width:800px) {
    .site-header {
        padding:20px 6% 12px
    }
    .brand {
        gap:12px;
        font-size:20px
    }
    .brand svg {
        width:47px
    }
    .site-header nav {
        gap:15px;
        font-size:12px
    }
    .nav-contact {
        gap:7px
    }
    .site-header nav>a {
        display:none
    }
    .hero {
        display:flex;
        flex-direction:column;
        padding:18px 6% 30px;
        background-size:auto 750px;
        background-position:70% 170px;
        background-repeat:no-repeat;
        min-height:0
    }
    .intro {
        order:0;
        padding-top:0
    }
    h1 {
        font-size:clamp(67px,12.5vw,104px);
        max-width:100%;
        letter-spacing:-.06em;
        line-height:.91;
        margin:0 0 20px
    }
    .intro-copy {
        font-size:18px;
        line-height:1.5;
        margin-bottom:6px
    }
    .product {
        order:1;
        min-height:0;
        width:100%;
        padding-bottom:24px
    }
    .mug-stage {
        width:110%;
        max-width:630px;
        margin:-4px 0 -3px;
        max-height:none;
        aspect-ratio:1
    }
    .handnote {
        top:18px;
        right:0;
        font-size:21px
    }
    .handnote svg {
        width:40px;
        left:-31px;
        top:32px
    }
    .product-meta {
        margin-top:0;
        margin-bottom:16px;
        font-size:10px;
        gap:15px
    }
    .rotate-button {
        font-size:11px;
        gap:8px
    }
    .rotate-button .icon {
        width:22px
    }
    .material {
        padding-left:15px
    }
    .order-button {
        min-width:0;
        width:min(100%,400px);
        min-height:55px;
        font-size:18px
    }
    .order-note {
        font-size:10px
    }
    .composer {
        order:2;
        width:100%;
        max-width:none;
        padding-top:18px
    }
    .composer h2 {
        font-size:12px;
        margin-bottom:24px
    }
    .choice-row {
        display:block;
        margin-bottom:20px
    }
    .choice-row legend {
        font-size:13px;
        float:none;
        line-height:1;
        margin-bottom:12px
    }
    .choices {
        gap:8px
    }
    .chip {
        font-size:13px;
        padding:11px 17px;
        min-height:40px
    }
    .recipient .chip {
        font-size:13px;
        padding:11px 13px
    }
    .text-label {
        font-size:13px
    }
    textarea {
        font-size:16px;
        min-height:115px
    }
    .upload-button {
        font-size:12px;
        gap:10px
    }
    .upload-row {
        margin-bottom:20px
    }
    .generate-button {
        width:100%;
        min-width:0;
        min-height:58px;
        font-size:20px
    }
    .form-note {
        font-size:11px
    }
    .demo-note {
        font-size:11px;
        max-width:100%
    }
    .site-footer {
        width:88%;
        flex-direction:column;
        padding:18px 0 22px;
        gap:12px;
        font-size:11px
    }
    .site-footer span {
        margin:0 9px
    }
    .lead-dialog {
        padding:28px
    }
    .lead-dialog h2 {
        font-size:27px
    }
}

@media(max-width:360px) {
    h1 {
        font-size:18vw
    }
    .intro-copy {
        font-size:16px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    *,*::before,*::after {
        transition:none!important
    }
}


.lead-preview {
    display: block;
    width: 125px;
    height: 125px;
    object-fit: contain;
    margin: -12px auto 0;
}

.design-history {
    width: min(100%, 440px);
    margin-top: 22px;
}
.design-history h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
}
.history-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.history-card {
    padding: 4px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, .65);
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.history-card[aria-pressed="true"] {
    border-color: var(--blue, #0755ed);
    box-shadow: 0 0 0 1px var(--blue, #0755ed);
}
.history-card:focus-visible {
    outline: 2px solid var(--blue, #0755ed);
    outline-offset: 3px;
}
.history-card:disabled {
    cursor: default;
    opacity: .65;
}
.history-card img, .history-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}
.history-placeholder {
    display: grid;
    place-items: center;
    font-size: 28px;
    background: #f0f1f4;
}
.history-caption {
    display: grid;
    gap: 3px;
    padding: 7px 6px;
    font-size: 12px;
}
.history-caption time {
    color: #63718b;
    font-size: 10px;
}
.design-history > p {
    color: #63718b;
    font-size: 11px;
    margin: 10px 0 0;
}
@media (max-width: 800px) {
    .design-history { width: min(100%, 390px); }
}

.product-actions {
    display: flex;
    align-items: stretch;
    width: min(100%, 560px);
    gap: 12px;
}
.product-actions .order-button {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 18px 22px;
    white-space: nowrap;
}
.share-action {
    position: relative;
    flex: 0 0 146px;
    display: flex;
}
.share-button {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(0, 80, 240, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--blue, #0755ed);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}
.share-button:hover:not(:disabled) {
    background: #eef3ff;
}
.share-button:focus-visible {
    outline: 2px solid var(--blue, #0755ed);
    outline-offset: 3px;
}
.share-button:disabled {
    opacity: .45;
    cursor: default;
}
.share-toast {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: 230px;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;
    color: var(--blue, #0755ed);
    box-shadow: 0 4px 24px rgba(30, 50, 100, .12);
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}
@media (max-width: 1200px) and (min-width: 801px) {
    .product-actions .order-button { font-size: 20px; padding: 17px 18px; }
    .share-action { flex-basis: 124px; }
    .share-button { font-size: 13px; padding: 12px; }
}
@media (max-width: 800px) {
    .product-actions { width: min(100%, 400px); gap: 8px; }
    .product-actions .order-button { font-size: 16px; min-height: 55px; padding: 14px; gap: 8px; }
    .product-actions .order-button .icon { width: 17px; height: 17px; }
    .share-action { flex-basis: 116px; }
    .share-button { font-size: 13px; padding: 12px; }
}
@media (max-width: 360px) {
    .product-actions .order-button { font-size: 14px; padding: 12px 10px; }
    .product-actions .order-button .icon { display: none; }
    .share-action { flex-basis: 102px; }
}
