@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/IRANSansWeb.woff2") format("woff2");
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/IRANSansWeb_Medium.woff2") format("woff2");
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/IRANSansWeb_Bold.woff2") format("woff2");
}

:root {
    --bg: #ffe4ec;
    --paper: #fffdfb;
    --ink: #3a2430;
    --muted: #a07c8a;
    --line: rgba(58, 36, 48, 0.1);
    --accent: #ff4d78;
    --wash: #ffe0ea;
    --stage: #3a2430;
    --ok: #1f6b45;
    color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: IRANSans, Tahoma, sans-serif;
    background:
        radial-gradient(420px 220px at 50% -40px, rgba(255, 255, 255, 0.7), transparent 70%),
        var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }

#app {
    width: min(460px, 100%);
    margin: 0 auto;
    padding: 28px 18px 64px;
}

.top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.brand {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.brand__meta {
    font-size: 13px;
    color: var(--muted);
}

.hero { margin-bottom: 28px; }

.hero__kicker {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--muted);
}

.hero__title {
    font-size: 58px;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.055em;
    margin-bottom: 22px;
}

.solid, .line, .texty, .ghost {
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.solid { background: var(--accent); color: white; box-shadow: 0 10px 22px rgba(255, 77, 120, 0.28); }
.solid.wide { width: 100%; }
.solid--light { background: white; color: var(--accent); padding: 0 22px; box-shadow: 0 8px 20px rgba(255, 77, 120, 0.12); }
.line {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(22, 21, 19, 0.2);
}
.texty {
    background: transparent;
    color: var(--muted);
    min-height: 40px;
    padding: 0 4px;
}

.stack, .list { display: grid; gap: 12px; }
.list { margin-top: 8px; }

.card, .ticket {
    background: var(--paper);
    color: var(--ink);
}

.card {
    margin-top: 18px;
    padding: 22px 20px 18px;
    border-radius: 28px;
}

.ticket {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: white;
    box-shadow: 0 24px 50px rgba(255, 77, 120, 0.16);
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    padding: 8px 22px 96px;
    color: var(--ink);
    overflow: hidden;
    background: white;
}

.ticket.is-open .stage {
    min-height: 0;
    padding-bottom: 18px;
}

.ticket.is-open .ask .q,
.ticket.is-open .ticket__bar { display: none; }

.window {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 8px auto 14px;
    border-radius: 40px;
    background: #ffd0dc;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(255, 77, 120, 0.18);
}

.ticket.is-open .window {
    width: 84px;
    height: 84px;
    border-radius: 28px;
}

.window svg, .window img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.window__veil { display: none; }

.window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.ticket__bar, .from, .ask, .bubble { position: relative; z-index: 2; }

.ticket__bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}

.mark { font-weight: 700; color: var(--accent); }

.serial { letter-spacing: 0.12em; }

.from {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.from b { color: var(--ink); font-weight: 500; }

.bubble {
    position: absolute;
    top: 168px;
    left: 18px;
    right: 18px;
    margin: 0 auto;
    width: max-content;
    max-width: calc(100% - 36px);
    padding: 8px 12px;
    border-radius: 16px 16px 16px 4px;
    background: #ffe0ea;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    z-index: 5;
}

.ask {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.ask .who {
    font-size: 42px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.ticket.is-open .ask .who { font-size: 28px; }

.ask .q {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #7a5564;
}

.yes, .no {
    position: absolute;
    bottom: 22px;
    z-index: 3;
    border: 0;
    min-height: 54px;
    font-weight: 700;
}

.yes {
    right: 22px;
    min-width: 128px;
    height: 58px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 22px;
    letter-spacing: -0.03em;
    box-shadow: 0 12px 24px rgba(255, 77, 120, 0.35);
}

.yes:active { transform: translateY(1px) scale(0.98); }

.no {
    left: 22px;
    top: auto;
    bottom: 28px;
    z-index: 4;
    padding: 0 16px;
    border-radius: 999px;
    background: white;
    color: var(--accent);
    box-shadow: inset 0 0 0 1.5px #ffc0d0;
    touch-action: none;
    user-select: none;
    white-space: nowrap;
    font-size: 14px;
    transition: transform 0.42s cubic-bezier(0.16, 1.2, 0.3, 1);
}

.no.is-loose {
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
}

.no.is-pop { animation: pop 0.42s ease; }

@keyframes pop {
    0% { scale: 0.92; }
    55% { scale: 1.06; }
    100% { scale: 1; }
}

.perf {
    height: 22px;
    background:
        radial-gradient(circle at 12px 50%, var(--bg) 6px, transparent 7px) left center / 24px 22px repeat-x,
        white;
}

.fold {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket.is-open .fold { grid-template-rows: 1fr; }
.fold__inner { overflow: hidden; }

.plan { padding: 8px 22px 26px; }

.plan h2, .form-title {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.kicker {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.seal {
    margin: 8px 0 16px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 40%),
        var(--wash);
}

.seal b {
    display: block;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cal__head, .chips, .days, .swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cal__head {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.iconbtn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(22, 21, 19, 0.06);
    color: var(--ink);
    font-size: 18px;
}

.week, .grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.week {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
}

.day.is-free { box-shadow: inset 0 0 0 1px var(--accent); }
.day.is-on { background: var(--accent); color: white; }
.day:disabled { color: rgba(22, 21, 19, 0.22); }

.chip, .daychip, .tone {
    border: 0;
    border-radius: 999px;
    min-height: 40px;
    padding: 0 14px;
    background: rgba(22, 21, 19, 0.05);
    color: var(--ink);
}

.chip.is-on, .daychip.is-on, .tone.is-on {
    background: var(--accent);
    color: white;
}

.field { display: grid; gap: 8px; }

.field span, .label {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

input[type="text"], textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(22, 21, 19, 0.16);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    min-height: 48px;
    padding: 10px 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

textarea { min-height: 96px; resize: vertical; font-size: 18px; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }

.steps { display: flex; gap: 6px; margin: -6px 0 18px; }
.steps i {
    height: 2px;
    flex: 1;
    border-radius: 99px;
    background: rgba(22, 21, 19, 0.1);
}
.steps i.is-on { background: var(--ink); }

.swatches { gap: 10px; }

.ink {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px transparent;
}

.ink.is-on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.covers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.cover {
    border: 0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    min-height: 64px;
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
}

.cover.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.cover svg { width: 100%; height: 72px; display: block; }

.file {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    background: rgba(22, 21, 19, 0.04);
    font-weight: 500;
}

.file input { display: none; }

.preview {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
}

.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }

.item {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px 16px 16px 14px;
    border-radius: 22px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 77, 120, 0.08);
}

.item b { display: block; font-size: 18px; letter-spacing: -0.03em; }
.item .fine { color: var(--muted); }
.item__mark { width: 8px; height: 36px; border-radius: 99px; background: var(--accent); }

.pill {
    font-size: 11px;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(22, 21, 19, 0.06);
    color: #5c564e;
}

.pill.is-seen { color: #8a6820; background: #f3e4c4; }
.pill.is-done { color: #1f6b45; background: #d7e7da; }

.summary { display: grid; margin: 4px 0 8px; }

.summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(22, 21, 19, 0.18);
    font-size: 15px;
}

.summary b { font-size: 16px; letter-spacing: -0.03em; }

.status {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--muted);
}

.banner {
    background: #2a1614;
    color: #f6e4df;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fine { color: var(--muted); font-size: 12px; }
.card .fine, .ticket .fine, .plan .fine { color: var(--muted); }

.keep {
    margin-top: 28px;
    line-height: 1.8;
    word-break: break-all;
}

.keep span { color: var(--ink); }

.confetti {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.confetti i {
    position: absolute;
    top: -12px;
    width: 7px;
    height: 10px;
    border-radius: 1px;
    background: var(--accent);
    animation: fall 1.15s ease-in forwards;
}

@keyframes fall {
    to { transform: translateY(105vh) rotate(40deg); opacity: 0; }
}

[data-ink="rose"] { --accent: #ff4d78; --wash: #ffe0ea; }
[data-ink="ink"] { --accent: #1b1b1b; --wash: #e6e2da; }
[data-ink="coffee"] { --accent: #7a4328; --wash: #edd9c6; }
[data-ink="night"] { --accent: #2d2a6e; --wash: #dddaf2; }
[data-ink="leaf"] { --accent: #1f6b45; --wash: #d7e7da; }
[data-ink="gold"] { --accent: #8a6820; --wash: #f3e4c4; }

.ticket[data-ink="ink"] .yes { color: var(--paper); }

.plan { text-align: center; }
.plan h2 { font-size: 26px; }
.emoji { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.lead { color: var(--muted); margin: 6px 0 14px; }
.finale { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.actions, .plan .texty, .plan .solid { margin-top: 8px; }

.tiles, .clocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 14px;
    text-align: right;
}

.tile, .clock {
    display: grid;
    gap: 2px;
    align-content: center;
    min-height: 74px;
    padding: 10px 12px;
    border: 0;
    border-radius: 18px;
    background: #fff5f8;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px transparent;
    text-align: right;
}

.tile span, .clock b {
    font-size: 22px;
    line-height: 1.2;
}

.tile b, .clock span {
    font-size: 13px;
    font-weight: 500;
    color: #7a5564;
}

.tile.is-on, .clock.is-on {
    background: white;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.clock { grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.clocks { grid-template-columns: 1fr; }
.clock b { font-size: 28px; color: var(--accent); }

.hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hearts i {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff8eab;
    transform: rotate(45deg);
    opacity: 0.55;
    animation: float 8s linear infinite;
}

.hearts i::before, .hearts i::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: inherit;
    border-radius: 50%;
}

.hearts i::before { top: -5px; }
.hearts i::after { left: -5px; }
.hearts i:nth-child(1) { left: 8%; top: 110%; animation-duration: 11s; }
.hearts i:nth-child(2) { left: 22%; top: 120%; animation-duration: 9s; animation-delay: -2s; }
.hearts i:nth-child(3) { left: 40%; top: 130%; animation-duration: 13s; animation-delay: -4s; }
.hearts i:nth-child(4) { left: 58%; top: 115%; animation-duration: 10s; animation-delay: -1s; }
.hearts i:nth-child(5) { left: 72%; top: 125%; animation-duration: 12s; animation-delay: -6s; }
.hearts i:nth-child(6) { left: 84%; top: 118%; animation-duration: 9.5s; animation-delay: -3s; }
.hearts i:nth-child(7) { left: 50%; top: 140%; animation-duration: 14s; animation-delay: -5s; }

@keyframes float {
    to { transform: translateY(-120vh) rotate(45deg); }
}

#app { position: relative; z-index: 1; }

.window::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .ticket, .no, .fold, .yes:active, .hearts i { animation: none; transition: none; }
    .confetti { display: none; }
}
