/* Guest draft builder and sign-in pages. */
.public-bar,
.public-content {
  max-width: 1240px;
  margin: auto;
  padding-inline: clamp(20px, 5vw, 68px);
}
.public-bar,
.public-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.public-bar {
  justify-content: space-between;
  min-height: 84px;
}
.public-brand {
  gap: 10px;
  color: #30194b;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.14rem;
}
.login-page .field {
  margin-block: 15px;
}
.login-page form > .btn {
  width: 100%;
}
.login-page h1 {
  margin-bottom: 8px;
}
.login-error {
  color: #8a263e;
  font-size: 0.9rem;
}
.login-error:empty {
  display: none;
}

@media (max-width: 600px) {
  .public-bar { min-height: 74px; }
  .public-brand { font-size: .98rem; gap: 7px; }
  .public-brand img { width: 32px; height: 32px; }
  .public-bar .btn { white-space: nowrap; }
}

@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
.landing {
  --ink: #201326;
  --purple: #6740aa;
  --deep: #30194b;
  --pale: #f0e8fb;
  --edge: #e2d9e9;
  --gutter: clamp(1.25rem, 4.2vw, 3.75rem);
  --rail: clamp(1.1rem, 4.4vw, 5rem);
  position: relative; isolation: isolate;
  padding: clamp(.7rem, 1.5vw, 1.5rem) var(--rail);
  color: var(--ink);
  background: radial-gradient(#bda6d5 1px, transparent 1.2px) 1px 2px / 13px 13px, #e9dcf5;
}
/* Oversized echoes of the chat mark show through the two printed margins. */
.landing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #d7c5e9;
  mask: url("/icons/messages-square.svg") center top / 13rem 21rem repeat;
}
.street-frame {
  max-width: 81rem; margin-inline: auto; border: 1px solid #a38abb; border-radius: 1.35rem;
  background: #fffdff; box-shadow: 0 5px 0 #bda5ce, 0 12px 36px #39204f19;
}
.landing a { color: var(--purple); }
.landing :focus-visible { outline: 3px solid #8a55d8; outline-offset: 4px; }
.street-header {
  position: relative; isolation: isolate;
  border-radius: 1.25rem 1.25rem 0 0; border-bottom: 3px solid #bc9aeb;
  background: linear-gradient(110deg, var(--deep) 20%, #52306e 78%, #412556);
}
.street-header::before {
  content: ""; position: absolute; inset: 0 28% 0 auto; width: 27%; z-index: -1;
  background: #b990d8; opacity: .18;
  mask: url("/icons/messages-square.svg") center 55% / 9.75rem no-repeat;
}
.street-header :focus-visible, .street-footer :focus-visible { outline-color: #efcbff; }
.street-nav, .street-intro, .footer-nav {
  width: min(100%, 86rem); margin-inline: auto; padding-inline: var(--gutter);
}
.street-nav, .nav-links, .footer-nav, .street-logo {
  display: flex; align-items: center;
}
.street-nav, .footer-nav { justify-content: space-between; gap: 1rem; }
.street-nav { min-height: 4.7rem; position: relative; z-index: 3; }
.nav-links { gap: clamp(.7rem, 1.6vw, 1.35rem); }
.street-nav a, .footer-nav a {
  min-height: 44px; display: inline-flex; align-items: center; color: #fffaff;
  text-decoration: none; font-size: 1rem; font-weight: 700;
}
.street-nav a:hover, .footer-nav a:hover { text-decoration: underline; }
.street-nav .account-link {
  padding-inline: 1.15rem; border-radius: 2rem; background: #eadbff; color: var(--deep);
}
.street-nav .account-link:hover { background: #faf1ff; }
.nav-wide::before, .footer-dashboard::before {
  content: ""; width: 1.05rem; height: 1.05rem; margin-right: .5rem;
  background: currentColor; mask: url("/icons/messages-square.svg") center / contain no-repeat;
}
.footer-dashboard::before { mask-image: url("/icons/layout-dashboard.svg"); }
.street-logo img { display: block; height: auto; }
.street-menu { position: relative; }
.street-menu summary, .how-details summary { list-style: none; cursor: pointer; }
.street-menu summary::-webkit-details-marker, .how-details summary::-webkit-details-marker { display: none; }
.street-menu summary {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #bca4d1; border-radius: 50%; background: #ffffff0d;
}
.street-menu summary img { filter: invert(1); }
.street-menu[open] summary, .street-menu summary:hover { background: #ffffff24; }
.street-menu > div {
  position: absolute; top: calc(100% + .45rem); right: 0; width: 12.5rem;
  padding: .45rem; border: 1px solid var(--edge); background: white; border-radius: .8rem;
  box-shadow: 0 10px 35px #30194b20;
}
.street-nav .street-menu a { color: var(--deep); display: flex; padding-inline: .75rem; border-radius: .4rem; }
.street-menu a:focus-visible { outline-color: var(--purple); outline-offset: -3px; }
.street-menu a:hover { background: var(--pale); }

.street-intro {
  padding-block: clamp(2.4rem, 4.15vw, 4rem);
  display: grid; grid-template-columns: minmax(0,1.78fr) minmax(0,1fr); gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.street-intro h1, .street-story h2, .street-finale h2 {
  font-weight: 900; letter-spacing: -.066em;
}
.street-intro h1 {
  font-size: clamp(3.5rem, 6.65vw, 6.45rem);
  line-height: .95;
}
.street-intro em { font-style: normal; color: var(--purple); }
.intro-action { padding-top: .25rem; }
.intro-action > p {
  font-size: clamp(1.23rem, 1.72vw, 1.64rem); line-height: 1.26;
  font-weight: 500; letter-spacing: -.04em;
}
.landing .create-qr {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .75rem 1.68rem; color: white; background: var(--purple); border: none;
  border-radius: .6rem; text-decoration: none; font-size: 1.08rem;
  font-weight: 700; letter-spacing: -.022em; line-height: 1.32;
  transition: background-color 150ms ease, transform 150ms ease;
}
.intro-action .create-qr { margin-top: 1.18rem; min-width: 12.1rem; }
.landing .create-qr:hover { background: #4f278b; }
.landing .create-qr:active { transform: translateY(1px); }
.intro-action small {
  display: block; margin-top: .53rem; color: #594562; font-size: .9rem;
}
.street-scene {
  position: relative; display: block; overflow: hidden; width: min(100%, 112rem);
  margin-inline: auto; aspect-ratio: 2.7; background: #d8c2c2;
}
.street-scene:focus-visible { outline-offset: -5px; }
.street-negative { position: absolute; width: 100%; top: 50%; left: 0; transform: translateY(-47%); }
.stoop { display: block; width: 100%; height: auto; }
.sign-face {
  position: absolute; left: 19.7%; top: 28.1%; width: 16.7%; height: 57.5%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  transform: skewX(2deg); color: var(--deep); container-type: inline-size;
}
.sign-logo { width: 73%; height: auto; }
.sign-face strong { font-size: 11.3cqi; line-height: 1.1; font-weight: 900; letter-spacing: -.055em; }
.sign-code { width: 82%; height: 63%; object-fit: contain; }
.sign-face span { font-size: 8.3cqi; line-height: 1.1; font-weight: 700; }
.street-stories, .how-wrap {
  width: min(100%, 75rem); margin-inline: auto; padding-inline: var(--gutter);
}
.street-stories { padding-top: clamp(1.2rem, 3vw, 3rem); }
.street-story {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.25rem, 4.8vw, 5.3rem);
  padding-block: clamp(1.2rem, 2.6vw, 2.15rem); border-bottom: 1px solid var(--edge);
}
.street-story h2 { font-size: clamp(2.15rem, 3.8vw, 3.6rem); line-height: 1; }
.street-story p {
  margin-top: .75rem; color: #4f3f56; font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  letter-spacing: -.018em; line-height: 1.5; max-width: 31rem;
}
.story-photo, .gift-example { width: 100%; aspect-ratio: 1.97; border-radius: .7rem; }
.story-link { display: block; border-radius: .7rem; text-decoration: none; }
.story-photo { display: block; height: auto; object-fit: cover; }
.gift-story > :last-child { grid-column: 1; grid-row: 1; }
.gift-box {
  display: inline-grid; place-items: center; width: 3.35rem; height: 3.35rem; margin-bottom: .75rem;
  background: var(--pale); border-radius: .85rem; transform: rotate(-5deg);
}
.gift-example {
  position: relative; grid-column: 2; overflow: hidden; container-type: inline-size;
  background: radial-gradient(ellipse at 76% 82%, #f9f4ff, transparent 68%), #e8d9fb;
}
.gift-out, .gift-in {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: .45em;
  font-weight: 700; letter-spacing: -.035em; line-height: 1.2; white-space: nowrap;
}
.gift-out {
  top: 19%; left: 6%; padding: .48em .8em; color: white;
  font-size: 6.9cqi; background: linear-gradient(120deg,#593098,#7c4bb9);
  border-radius: .75em .75em .75em .12em; transform: rotate(-2deg);
}
.gift-in {
  right: 5.4%; bottom: 14%; color: var(--deep); background: white;
  padding: .62em .88em; font-size: 5.7cqi; border-radius: .8em .8em .12em .8em;
  transform: rotate(2deg); box-shadow: 0 3px 0 #d7c5e4;
}
.paper-cup { width: 1.08em; height: 1.3em; position: relative; transform: rotate(-8deg); }
.paper-cup::before {
  content: ""; position: absolute; inset: 17% 6% 0;
  background: linear-gradient(to bottom,#fff7e6 0 30%,#b77b46 30% 72%,#fff7e6 72%);
  clip-path: polygon(0 0,100% 0,83% 100%,17% 100%);
}
.paper-cup i { position: absolute; top: 8%; left: 0; width: 100%; height: 14%; background: #392145; border-radius: .1em; }
.paper-cup::after { content: ""; position: absolute; top: 0; left: 11%; width: 78%; height: 12%; border-radius: .12em .12em 0 0; background:#fff7e6; }

.how-wrap { padding-block: .3rem clamp(1.65rem, 3vw, 2.6rem); }
.how-details summary { min-height: 52px; display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-weight: 700; color: var(--deep); }
.how-details[open] summary img { transform: rotate(180deg); }
.how-details ol { padding-left: 1.4rem; margin: .25rem 0 .5rem; color: #4f3f56; }
.how-details li + li { margin-top: .45rem; }
.street-footer {
  border-radius: 0 0 1.25rem 1.25rem; color: white;
  background: radial-gradient(ellipse at 95% 0%, #5e3b7b, transparent 63%), var(--deep);
  border-top: 3px solid #c8a9ec;
}
.street-finale {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 24%); align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem); padding: clamp(2.6rem, 5vw, 4.75rem) var(--gutter);
}
.street-finale h2 { font-size: clamp(2rem, 3.8vw, 3.7rem); line-height: 1.04; }
.street-finale h2 span { color: #d9bdff; }
.street-finale .create-qr { color: var(--deep); background: white; margin-top: 1.4rem; }
.street-finale .create-qr:hover { background: #ece0ff; }

/* The two paper bubbles echo the tail and rounded corners of the invitation QR. */
.conversation-art {
  width: min(100%, 15.5rem); aspect-ratio: 1.55; justify-self: center;
  position: relative; filter: drop-shadow(0 5px 0 #21102d59);
}
.conversation-art span { position: absolute; border-radius: 22% / 30%; }
.conversation-art span::before {
  content: ""; position: absolute; bottom: -17%; left: 13%; width: 24%; height: 26%;
  background: inherit; clip-path: polygon(0 100%, 16% 0, 100% 0);
}
.conversation-art span::after { content: ""; position: absolute; }
.heart-bubble {
  width: 58%; height: 60%; top: 2%; right: 1%; background: #f5dcff; rotate: 11deg;
}
.heart-bubble::after {
  inset: 22%; background: #7948a4; mask: url("/icons/heart.svg") center / contain no-repeat;
}
.dots-bubble {
  width: 65%; height: 65%; bottom: 4%; left: 1%; background: #c6a4ef; rotate: -9deg;
}
.dots-bubble::after {
  inset: 0 22%;
  background: radial-gradient(circle, #472760 0 29%, transparent 31%) left center / 33.33% 55% repeat-x;
}
.footer-nav {
  min-height: 4.8rem; position: relative; border-radius: inherit; background: #28153b;
}
.footer-nav::before {
  content: ""; position: absolute; inset: 0 var(--gutter) auto; height: 1px; background: #81678f;
}
.footer-nav a { font-size: .94rem; }
.landing main > .info { margin: 1rem auto; max-width: 69rem; }

@media (max-width: 760px) {
  .landing { --rail: clamp(6px, 1.65vw, 12px); --gutter: clamp(1rem, 3.75vw, 1.6rem); padding-block: .5rem .75rem; }
  .landing::before { display: none; }
  .street-frame { border-radius: .95rem; }
  .street-header { border-radius: .85rem .85rem 0 0; }
  .street-header::before { left: 43%; right: auto; width: 16%; mask-size: 4.5rem; opacity: .13; }
  .street-footer { border-radius: 0 0 .85rem .85rem; }
  .street-finale { grid-template-columns: 1fr; position: relative; padding-block: 2.1rem; }
  .street-finale h2 { max-width: 18ch; }
  .conversation-art { position: absolute; bottom: 1.35rem; right: var(--gutter); width: 5rem; }
  .street-nav .nav-wide { display: none; }
  .nav-links { gap: .9rem; }
  .street-nav { min-height: 4rem; }
  .street-logo img { max-width: 8.2rem; }
  .street-intro { display: block; padding-block: 1.6rem 1.45rem; }
  .street-intro h1 { font-size: clamp(2.45rem, 11.5vw, 4.7rem); }
  .intro-action { padding-top: .85rem; }
  .intro-action > p { font-size: clamp(1.07rem, 3.7vw, 1.32rem); line-height: 1.35; }
  .desktop-break { display: none; }
  .intro-action .create-qr { margin-top: .95rem; min-width: 0; }
  .street-scene { aspect-ratio: 1.64; }
  .street-negative { width: 148%; top: 50%; left: -18%; transform: translateY(-50%); }
  .street-stories { padding-top: .5rem; }
  .street-story { gap: clamp(.95rem, 3.6vw, 1.8rem); padding-block: 1rem; }
  .street-story h2 { font-size: clamp(1.46rem, 4.55vw, 2.2rem); line-height: 1.02; letter-spacing: -.06em; }
  .street-story p { font-size: 1rem; margin-top: .4rem; line-height: 1.34; }
  .story-photo, .gift-example { aspect-ratio: 1.43; }
  .gift-out { top: 24%; }
  .gift-in { bottom: 22%; }
}
@media (max-width: 475px) {
  .street-nav .account-link { padding-inline: .85rem; }
  .desktop-break { display: inline; }
  .street-nav .street-logo img { width: 7.4rem; }
  .street-stories { padding-inline: 1rem; }
  .street-story { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .gift-story > :last-child { grid-column: 2; }
  .gift-example { grid-column: 1; }
  .story-photo, .gift-example { border-radius: .5rem; aspect-ratio: 1.15; }
  .gift-out { left: 4%; font-size: clamp(.75rem, 8.6cqi, 1rem); }
  .gift-in { right: 4%; font-size: clamp(.75rem, 8cqi, 1rem); }
  .footer-nav a { font-size: .88rem; }
  .footer-nav .street-logo img { width: 6.6rem; }
}
@media (max-width: 360px) {
  .footer-dashboard::before { display: none; }
}
/* The buttons rest for the first 19.4 seconds of each cycle. */
@keyframes create-qr-wiggle {
  0%, 97%, 100% { rotate: 0deg; }
  97.6% { rotate: -3deg; }
  98.2% { rotate: 3deg; }
  98.8% { rotate: -2deg; }
  99.4% { rotate: 1deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .landing .create-qr { animation: create-qr-wiggle 20s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .create-qr { transition: none; }
  .landing .create-qr:active { transform: none; }
}
.home-discover { display: inline-flex; align-items: center; min-height: 44px; color: #fffaff; font-weight: 700; text-decoration: none; }
@media (max-width: 420px) { .street-nav .nav-links { gap: .4rem; } .street-nav .home-discover { font-size: .85rem; } .street-nav { gap: .4rem; padding-inline: .65rem; } .street-nav .street-logo img { width: clamp(4.6rem, 22vw, 6rem); } .street-nav .account-link { padding-inline: .55rem; font-size: .875rem; } }
