/* One design in one product: /greetingcard/{id}, /groupcards/{id}, /gifs/{id}
   (lib/design-landing.php). Builds on product-landing.css. */

.dl-hero .wrap {
  position: relative;
  z-index: 1;
}

.dl-hero .fw-crumbs {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto 26px;
  padding-left: 24px;
}

.dl-hero .lp-hero-copy h1 {
  font-size: clamp(34px, 4.2vw, 52px);
}
.dl-hero .lp-hero-copy .lede { max-width: none; }
.dl-hero .lp-trust { grid-template-columns: max-content; }

.dl-cover {
  display: block;
  justify-self: center;
  width: min(380px, 100%);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}
.dl-cover:hover { transform: rotate(0deg) scale(1.02); }
.dl-cover-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(10, 2, 20, 0.6);
}

.dl-page h2 {
  margin: 0 0 12px;
  font: 600 clamp(26px, 2.8vw, 36px)/1.15 var(--serif);
  letter-spacing: -0.02em;
}
.dl-page .lede { color: var(--muted); font-size: 18px; margin: 0 0 26px; }

/* ------------------------------------------------------------ the design */

.dl-about { padding: 70px 0 30px; background: #fff; }
.dl-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px 44px;
}
.dl-block h2 { font-size: clamp(23px, 2.2vw, 28px); }
.dl-block p { margin: 0; font-size: 17.5px; line-height: 1.65; color: var(--ink); }

.dl-about-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dl-about-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.dl-feat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(42, 16, 59, 0.1);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(42, 16, 59, 0.07);
  overflow: hidden;
}
.dl-feat-copy { padding: 26px 28px 30px; }
.dl-feat h2 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.18; margin: 0 0 10px; }
.dl-feat p { font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.dl-feat .lp-points { margin-top: 18px; gap: 9px; }
.dl-feat .lp-points li { font-size: 15.5px; }

.dl-feat-art {
  position: relative;
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-field, #2a103b);
  background-image: radial-gradient(circle at 50% 46%, rgba(243, 198, 61, 0.26), transparent 52%);
}
.dl-about-grid--2 .dl-feat-art { aspect-ratio: 16 / 10; }
.dl-feat-cover {
  display: block;
  width: 46%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(8, 2, 16, 0.42);
}
.dl-about-grid--2 .dl-feat-art--moment .dl-feat-cover { width: 32%; }

/* Change the words: the cover, and beside or under it the field the words are
   typed into and three fonts that light up in turn. */
.dl-feat-art--edit { gap: 22px; padding: 0 6%; }
.dl-feat-art--edit .dl-feat-cover { width: 34%; flex: none; }
.dl-type-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 260px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(8, 2, 16, 0.35);
}
.dl-about-grid--3 .dl-feat-art--edit { flex-direction: column; gap: 12px; }
.dl-about-grid--3 .dl-feat-art--edit .dl-feat-cover { width: 34%; }
.dl-about-grid--3 .dl-type-panel { flex: none; width: 100%; padding: 10px; gap: 8px; }
.dl-type-field {
  padding: 8px 11px;
  border-radius: 9px;
  border: 1.5px solid var(--purple-deep, #2a103b);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.dl-type-field.is-typing .dl-field-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--purple-deep, #2a103b);
  animation: dl-caret 1s steps(1) infinite;
}
@keyframes dl-caret { 50% { opacity: 0; } }
.dl-font-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dl-font-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 7px 4px 6px;
  border-radius: 9px;
  border: 1.5px solid rgba(42, 16, 59, 0.14);
  color: var(--muted, #6b5f73);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dl-font-box b { font-size: 20px; line-height: 1.1; color: var(--ink, #2a103b); }
.dl-font-box.is-on {
  border-color: var(--purple-deep, #2a103b);
  background: #f3eef6;
  color: var(--ink, #2a103b);
}
.dl-font-box.is-press { transform: scale(0.94); }

/* The wall inside a group card: two columns of notes running off the bottom. */
.dl-feat-art--wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 18px 18px 0;
}
.dl-feat-art--wall .hp-group-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% + 24px);
}
.dl-feat-art--wall .hp-note { flex: none; }
.dl-feat-art--wall .hp-note:last-child { flex: 1 0 auto; }
.dl-feat-art--wall .hp-note p { font-size: 12px; line-height: 1.4; color: var(--ink); }

/* ----------------------------------------------------------- the lines */

.dl-lines { padding: 64px 0; background: var(--lp-band); }
.dl-line-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl-line-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--lp-card);
}
.dl-line-list li { position: relative; padding-top: 34px; }
.dl-line-list li::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 20px;
  font: 700 54px/1 var(--serif);
  color: #f0c24b;
}
.dl-line-list q {
  font: 500 19px/1.45 var(--serif);
  color: var(--ink);
  quotes: none;
}
.dl-line-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--purple-deep, #2a103b);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.dl-line-btn::after { content: "→"; transition: transform 0.15s ease; }
.dl-line-btn:hover { background: #f0c24b; color: var(--purple-deep, #2a103b); transform: translateY(-1px); }
.dl-line-btn:hover::after { transform: translateX(3px); }

/* ------------------------------------------- how it arrives */

.dl-show { padding: 30px 0 70px; background: #fff; }
.dl-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.dl-show-steps {
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: dl-step;
}
.dl-show-steps li {
  position: relative;
  padding: 0 0 18px 50px;
  font-size: 17.5px;
  line-height: 1.55;
  counter-increment: dl-step;
}
.dl-show-steps li::before {
  content: counter(dl-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0c24b;
  color: var(--purple-deep, #2a103b);
  font-weight: 800;
}
/* The card lands a little above the middle, clear of the replay button. */
.dl-envelope iframe { top: 0; bottom: auto; height: 90%; }
.dl-hero-art { min-width: 0; }
.dl-env-stage { display: flex; justify-content: center; padding: 30px 0 60px; }
.dl-env-preview { position: relative; width: min(380px, 100%); }
.dl-env-preview .dl-cover { position: relative; z-index: 1; width: 100%; }
.card-landing.dl-env-stage .punch-envelope { top: 36%; }
.dl-group-stage {
  position: relative;
  width: min(360px, 100%);
  margin: 30px auto 50px;
  left: -8%;
}
.dl-group-stage .dl-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: translateX(-16%) rotate(-3deg);
}
.dl-group-stage .dl-cover:hover { transform: translateX(-16%) rotate(-1deg) scale(1.02); }
.dl-group-back {
  position: absolute;
  inset: -5% -44% 8% 30%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #f5eee6;
  box-shadow: 0 30px 70px -20px rgba(10, 2, 20, 0.6);
  transform: rotate(5deg);
}
.dl-group-back .hp-group-col { gap: 10px; }
.dl-group-back .hp-group-col:last-child { padding-top: 26px; }
.dl-group-back .hp-note { box-shadow: 0 4px 12px rgba(42, 16, 59, 0.14); }
.dl-group-back .hp-note p { font-size: 12px; color: var(--ink); }
.dl-hero-art--group .gx-board--hero { max-height: 470px; }
.dl-show-art .dl-cover { margin: 0 auto; }
.dl-show-art .dl-envelope { border-radius: 22px; background: #fdf7f4; overflow: hidden; }
.dl-show-art .dl-chat { width: 100%; }
.dl-show-art .dl-chat-gif { width: 46%; }
.dl-board-cover {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(42, 16, 59, 0.22);
}
.dl-board .gx-note p { font-size: 14px; }

/* A team chat with the GIF as the answer. */
.dl-chat {
  width: min(400px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: #efe7dd;
  box-shadow: 0 26px 60px -24px rgba(42, 16, 59, 0.45);
}
.dl-chat-head { padding: 14px 20px; background: #075e54; color: #fff; font-size: 16px; }
.dl-chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.dl-chat-msg {
  align-self: flex-start;
  max-width: 82%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.dl-chat-who { display: block; color: #7a3fb0; font-size: 13px; font-weight: 700; }
.dl-chat-msg--me { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: #d9fdd3; }
.dl-chat-gif { width: 62%; padding: 5px; }
.dl-chat-gif .gif-tile-card { display: block; border-radius: 10px; overflow: hidden; }
.dl-chat--mini .dl-chat-body { padding: 12px; gap: 6px; }
.dl-chat--mini .dl-chat-msg { font-size: 13px; }
.dl-chat--mini .dl-chat-gif { width: 42%; }

/* ------------------------------------------------- the other products */

.dl-other { padding: 64px 0 30px; background: #fff; }
.dl-other-grid { margin-top: 26px; }
.dl-hp-cover {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(10, 2, 20, 0.4);
}
.dl-hp-art--gif {
  display: flex;
  justify-content: center;
  padding: 22px 28px 0;
  background: #fdf7f4;
}
.dl-hp-art--gif .dl-chat { width: min(340px, 100%); border-radius: 22px 22px 0 0; }
.dl-hp-art--gif .dl-chat-msg:nth-child(3) { display: none; }
.dl-hp-art--gif .dl-chat-gif { width: 34%; }

/* ----------------------------------------------------------- questions */

.dl-page .lp-faq-list { max-width: none; }

/* ---------------------------------------------- more from the shelf */

.dl-more { padding: 56px 0 40px; background: #fff; }
.dl-more .gif-shelf-head { align-items: center; }
.dl-page .lp-cta,
.dl-page .lp-cta:hover { box-shadow: none; }
.dl-more-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--gold, #f3c63d);
  color: var(--purple-deep, #2a103b);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.dl-more-all span { transition: transform 0.15s ease; }
.dl-more-all:hover { transform: translateY(-1px); background: #f7d460; }
.dl-more-all:hover span { transform: translateX(3px); }
.dl-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .dl-hero .fw-crumbs { width: calc(100% - 40px); padding-left: 0; }
  .dl-hero .lp-hero-grid { grid-template-columns: 1fr; width: calc(100% - 40px); }
  .dl-hero .lp-hero-copy { padding-left: 0; }
  .dl-group-stage { width: min(260px, 64%); }
  .dl-about-grid--3, .dl-about-grid--2 { grid-template-columns: 1fr; }
  .dl-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .dl-cover { width: min(300px, 80%); }
  .dl-about { padding-top: 48px; }
  .dl-show-grid { grid-template-columns: 1fr; gap: 26px; }
}
