/* ==========================================================================
   Lovio homepage — "A day for two"
   Loaded after styles.css (which provides the header, buttons, footer and
   base tokens). Every class here is prefixed `h-` so it never collides with
   the shared stylesheet.
   ========================================================================== */

/* The homepage ends on the dark night section. Paint the canvas (what
   browsers show past the end of the page, under Safari's toolbar and in the
   overscroll bounce) dark to match. The body keeps the cream ground, so the
   page itself is unchanged; only the area outside it turns dark. */
html.is-home {
  --plum: #621F3D;
  --plum-deep: #1D1118;
  --coral: #FF425E;
  --orange: #FF8A5B;
  --violet: #8B5CF6;
  --teal: #2EC4C6;
  --teal-light: #7EE0D9;
  background: var(--plum-deep);
}

.h-page {
  position: relative;
  overflow-x: clip;
}

.h-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.h-aurora {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.h-cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.h-grad-cool {
  background: linear-gradient(90deg, #A78BFA, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.h-grad-logo {
  background: linear-gradient(90deg, var(--coral), var(--orange) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.h-lt {
  font-weight: 300;
}

.h-h2 {
  font-size: 76px;
  line-height: .98;
  font-weight: 800;
  letter-spacing: -3.4px;
  margin-top: 22px;
}

.h-h2 .h-lt {
  letter-spacing: -3px;
}

.h-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* ---------- Hero ---------- */

.h-hero {
  position: relative;
  text-align: center;
  padding-top: 40px;
}

.h-title {
  font-size: 128px;
  line-height: .92;
  font-weight: 800;
  letter-spacing: -6px;
}

.h-title .h-lt {
  letter-spacing: -5px;
}

.h-sub {
  max-width: 560px;
  margin: 28px auto 36px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-3);
}

.h-hero .store-row {
  justify-content: center;
}

/* The two-phone stage is drawn at a fixed 1160px and scaled on narrower
   screens, so the note's flight path always lands on the notification. */
.h-duo {
  position: relative;
  width: 1160px;
  height: 800px;
  margin: 64px 0 0;
  left: 50%;
  transform: translateX(-50%);
}

.h-phone {
  position: absolute;
  top: 40px;
  width: 340px;
  height: 736px;
  border-radius: 58px;
  background: #0b0b0e;
  box-shadow: 0 0 0 10px #1d1c22, 0 0 0 11px rgba(0, 0, 0, .08), 0 46px 90px rgba(110, 40, 55, .30);
  overflow: hidden;
}

.h-phone--leo {
  left: 180px;
  transform: rotate(-5deg);
}

.h-phone--emma {
  left: 640px;
  transform: rotate(5deg);
}

.h-who {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 50, 60, .14);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.h-who img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.h-who span {
  font-weight: 400;
  color: var(--ink-4);
}

.h-who--leo {
  left: 60px;
  top: 470px;
}

.h-who--emma {
  left: 980px;
  top: 250px;
}

.h-arc {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 1160px;
  height: 800px;
  overflow: visible;
  pointer-events: none;
}

.h-arc path {
  animation: h-dash 1.6s linear infinite;
}

.h-fly {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(120, 50, 60, .22);
  offset-path: path('M 244 176 C 360 -60, 700 -60, 812 360');
  offset-rotate: 0deg;
  animation: h-fly 7s cubic-bezier(.45, .05, .3, 1) infinite;
}

.h-duo-fade {
  position: absolute;
  z-index: 8;
  left: -200px;
  right: -200px;
  bottom: -170px;
  height: 550px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(251, 246, 243, 0) 0%,
      rgba(251, 246, 243, .22) 14%,
      rgba(251, 246, 243, .58) 26%,
      rgba(251, 246, 243, .88) 37%,
      var(--ground) 47%);
}

/* ---------- App screens, drawn at 390pt and scaled into the phone ---------- */

.h-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  transform: scale(.8718);
  transform-origin: 0 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
}

.h-screen > * {
  position: absolute;
}

.h-s-bg {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 0, 111, .3) 0%, rgba(255, 0, 111, .15) 28%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, #0F0E13, #1C1B22);
}

.h-s-island {
  z-index: 3;
  left: 132px;
  top: 11px;
  width: 126px;
  height: 37px;
  border-radius: 20px;
  background: #000;
}

.h-s-pills {
  left: 29px;
  top: 59px;
  width: 332px;
  display: flex;
  gap: 8px;
}

.h-s-pill {
  height: 36px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.h-s-pill--on {
  flex: 1;
  justify-content: center;
  background: rgba(74, 222, 128, .08);
}

.h-s-pill--on i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 4px rgba(74, 222, 128, .8);
}

.h-s-pill img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.h-s-pill .h-mu {
  font-weight: 400;
  color: rgba(255, 255, 255, .65);
}

.h-s-note {
  top: 131px;
  min-width: 104px;
  padding: 7px 12px;
  border-radius: 18px;
  background: #fff;
  color: #141414;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.h-s-note--me {
  right: 230px;
}

.h-s-note--partner {
  left: 230px;
}

.h-s-dot {
  border-radius: 50%;
  background: #fff;
}

.h-s-dot--lg {
  top: 154px;
  width: 12px;
  height: 12px;
}

.h-s-dot--sm {
  top: 171px;
  width: 6px;
  height: 6px;
}

.h-s-avatar {
  top: 179px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF3675, #FF77B4);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .28);
}

.h-s-avatar img {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
}

.h-s-title {
  left: 25px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}

.h-s-spark {
  left: 25px;
  top: 359px;
  width: 340px;
  height: 169px;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(to top right, #7f54e1, #10c3c4);
}

.h-s-spark-art {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .9;
}

.h-s-timer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .75);
}

.h-s-q {
  margin: 10px 60px 0 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.h-s-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h-s-faces {
  display: flex;
  gap: 5px;
}

.h-s-faces img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  object-fit: cover;
}

.h-s-btn {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

.h-s-tile {
  top: 595px;
  width: 164px;
  height: 164px;
  border-radius: 24px;
  overflow: hidden;
}

.h-s-tile--date {
  left: 25px;
  padding: 20.5px;
  background: linear-gradient(to top right, #c91857, #e468e7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.h-s-tile--date > img {
  width: 41px;
  height: 41px;
  object-fit: contain;
}

.h-s-cap {
  margin-bottom: 6px;
  font-size: 10.25px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .6);
}

.h-s-big {
  font-size: 18.45px;
  line-height: 24.6px;
  font-weight: 700;
}

.h-s-sub {
  font-size: 13.3px;
  color: rgba(255, 255, 255, .8);
}

.h-s-tile--canvas {
  left: 201px;
  background: #2F2D39;
}

.h-s-tile--canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lock screen (iOS proportions, in points) */
.h-lock {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  text-align: center;
}

.h-lock-wall {
  inset: 0;
}

.h-lock-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-lock-shade {
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .42) 100%);
}

.h-lock-date {
  left: 0;
  right: 0;
  top: 66px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  opacity: .88;
}

.h-lock-clock {
  left: 0;
  right: 0;
  top: 92px;
  font-size: 112px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  opacity: .94;
}

/* Lock screen widgets, as the app's WidgetKit accessories render them:
   monochrome, no tile, Alexandria (LoveNoteWidget + AnniversaryCountdown). */
.h-lock-widgets {
  left: 0;
  right: 0;
  top: 236px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.h-lw {
  width: 158px;
  height: 72px;
  display: flex;
  color: rgba(255, 255, 255, .94);
  font-family: 'Alexandria', system-ui, sans-serif;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .12);
}

.h-lw--note {
  align-items: center;
  gap: 4px;
}

.h-lw-av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.h-lw-bubble {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}

.h-lw--together {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.h-lw-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.h-lw-grid {
  display: grid;
  grid-template-columns: auto 12px auto 7px auto 7px auto;
  grid-template-rows: auto auto;
  justify-content: start;
  align-items: baseline;
}

.h-lw-grid b,
.h-lw-grid i {
  grid-row: 1;
  font-size: 20px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.h-lw-grid small {
  grid-row: 2;
  font-size: 8px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

.h-lw-grid small:nth-of-type(1) { grid-column: 1; }
.h-lw-grid small:nth-of-type(2) { grid-column: 3; }
.h-lw-grid small:nth-of-type(3) { grid-column: 5; }
.h-lw-grid small:nth-of-type(4) { grid-column: 7; }

.h-lock-stack {
  left: 0;
  right: 0;
  top: 330px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h-ntf {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 18px;
  padding: 14px 17px 14px 14px;
  border-radius: 23px;
  background: rgba(252, 252, 253, .78);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  backdrop-filter: blur(30px) saturate(1.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  color: #000;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

.h-ntf--new {
  animation: h-ntf-in 7s ease infinite;
}

.h-ntf-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-ntf-icon img {
  width: 100%;
  height: 100%;
}

.h-ntf-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -.016em;
}

.h-ntf-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.h-ntf-head b {
  flex: 1;
  font-weight: 600;
}

.h-ntf-head span {
  font-size: 12px;
  color: rgba(60, 60, 67, .78);
}

.h-lock-ctrl {
  bottom: 48px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 12, 24, .26);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- A day with Lovio ---------- */

.h-day {
  position: relative;
}

.h-intro {
  position: relative;
  z-index: 9;
  text-align: center;
  padding: 40px 0;
}

.h-rail {
  position: absolute;
  left: 50%;
  top: 330px;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 66, 94, 0), rgba(255, 66, 94, .55) 10%, rgba(255, 138, 91, .6) 90%, rgba(255, 138, 91, 0));
}

.h-ch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 120px;
  align-items: center;
  padding: 110px 0;
}

.h-ch-copy {
  max-width: 440px;
  justify-self: end;
  text-align: right;
}

.h-ch-copy .h-lead {
  max-width: 400px;
  margin-left: auto;
}

.h-ch--flip .h-ch-copy {
  order: 2;
  justify-self: start;
  text-align: left;
}

.h-ch--flip .h-ch-copy .h-lead {
  margin-left: 0;
}

.h-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}

.h-stamp i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.h-knot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 0 0 2px var(--coral), 0 0 0 8px rgba(255, 66, 94, .14);
}

.h-ch h3 {
  margin: 22px 0 18px;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2px;
}

.h-ch h3 .h-lt {
  letter-spacing: -1.6px;
}

.h-vis {
  position: relative;
  height: 500px;
}

.h-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* 08:02 */
.h-sun {
  position: absolute;
  right: -60px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 91, .42), rgba(255, 138, 91, 0));
  filter: blur(10px);
}

.h-spark {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 480px;
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(to top right, #7f54e1, #10c3c4);
  color: #fff;
  box-shadow: 0 40px 80px rgba(80, 60, 160, .28);
}

.h-spark-art {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 64px;
}

.h-spark-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .78);
}

.h-spark-q {
  margin: 14px 80px 0 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.h-ans {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 400px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(120, 50, 60, .14);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.h-ans img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.h-ans b {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--ink);
}

.h-ans--emma {
  left: 80px;
  top: 270px;
}

.h-ans--leo {
  left: 130px;
  top: 372px;
  animation: h-reveal 6s ease-in-out infinite;
}

/* 12:47 */
.h-doodle {
  position: absolute;
  left: 60px;
  top: 40px;
  width: 300px;
  height: 300px;
  border-radius: 52px;
  overflow: hidden;
  background: #2F2D39;
  box-shadow: 0 40px 80px rgba(60, 30, 60, .25);
  animation: h-float 6s ease-in-out infinite;
}

.h-doodle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-banner {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 350px;
  transform: rotate(2deg);
}

.h-banner .h-ntf {
  margin: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 20px 50px rgba(120, 50, 60, .18);
}

.h-sticky {
  position: absolute;
  left: 300px;
  top: 380px;
  padding: 12px 20px;
  border-radius: 24px;
  background: #fff;
  color: #141414;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(120, 50, 60, .16);
}

.h-sticky-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(120, 50, 60, .12);
}

.h-sticky-dot--lg {
  left: 296px;
  top: 440px;
  width: 16px;
  height: 16px;
}

.h-sticky-dot--sm {
  left: 282px;
  top: 462px;
  width: 8px;
  height: 8px;
}

/* ---------- Sunset ---------- */

.h-sunset {
  position: relative;
  padding: 330px 0 250px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--ground) 0%, #FFE1D2 12%, #FFAD7F 25%, #FF6F5E 38%, #E8406A 48%, #A12C5E 60%, var(--plum) 74%, #2E1624 88%, var(--plum-deep) 100%);
}

.h-orb {
  position: absolute;
  left: 50%;
  top: 110px;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFF0D6, #FFB27A 42%, rgba(255, 138, 91, 0) 70%);
  opacity: .9;
}

.h-sunset .h-stamp {
  color: var(--plum);
  margin-bottom: 26px;
}

.h-sunset-line {
  font-size: 92px;
  line-height: .98;
  font-weight: 800;
  letter-spacing: -4px;
  text-shadow: 0 2px 30px rgba(80, 10, 40, .25);
}

.h-sunset-line .h-lt {
  letter-spacing: -3.4px;
}

/* ---------- Night ---------- */

.h-night {
  position: relative;
  background: var(--plum-deep);
  color: #fff;
}

.h-night .h-lead {
  color: rgba(255, 255, 255, .66);
}

.h-night .h-cap {
  color: var(--teal-light);
}

.h-night .h-stamp {
  background: rgba(139, 92, 246, .12);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35);
  color: #C4B5FD;
}

.h-night .h-knot {
  background: var(--plum-deep);
  box-shadow: 0 0 0 2px var(--violet), 0 0 0 8px rgba(139, 92, 246, .18);
}

.h-night .h-rail {
  top: 0;
  background: linear-gradient(180deg, rgba(139, 92, 246, .6), rgba(46, 196, 198, .55) 85%, rgba(46, 196, 198, 0));
}

.h-night .h-lead a,
.h-night .faq a {
  color: var(--teal-light);
}

/* 19:30 */
.h-date-glow {
  left: 80px;
  top: 60px;
  width: 380px;
  height: 380px;
  background: rgba(255, 66, 94, .24);
}

.h-date-photo {
  position: absolute;
  left: 40px;
  top: 20px;
  width: 420px;
  height: 480px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}

.h-date-tile {
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 230px;
  height: 230px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(to top right, #c91857, #e468e7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(200, 24, 87, .35);
}

.h-date-tile img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.h-date-tile .c {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .65);
}

.h-date-tile .b {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.h-date-tile .s {
  margin-top: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
}

/* 22:15 — quiz category cards, built like the app's CategoryCard */
.h-quiz-glow {
  left: 60px;
  top: 80px;
  width: 420px;
  height: 360px;
  background: rgba(139, 92, 246, .26);
}

.h-q {
  position: absolute;
  width: 190px;
  aspect-ratio: 1.12;
  padding: 10px 12px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.h-q-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  color: rgba(255, 255, 255, .9);
}

.h-q img {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
}

.h-q h4 {
  position: relative;
  margin: 0;
  padding-bottom: 4px;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .2px;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
}

.h-q--a {
  left: -20px;
  top: 176px;
  transform: rotate(-9deg);
  background: linear-gradient(to top right, #0f8f5c, #72d86e);
}

.h-q--b {
  left: 372px;
  top: 176px;
  transform: rotate(9deg);
  background: linear-gradient(to top right, #3a3fb8, #e266c4);
}

.h-q--c {
  z-index: 2;
  left: 165px;
  top: 120px;
  background: linear-gradient(to top right, #c41f4f, #ff7fa8);
}

.h-yourmove {
  position: absolute;
  z-index: 3;
  left: 198px;
  top: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #2A0C1E;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

.h-yourmove i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c21d60;
}

/* ---------- Widgets ---------- */

.h-widgets {
  position: relative;
  padding: 160px 0 120px;
  text-align: center;
}

.h-widgets-glow {
  left: 50%;
  top: 120px;
  width: 900px;
  height: 500px;
  margin-left: -450px;
  background: rgba(46, 196, 198, .16);
}

.h-widgets .h-lead {
  max-width: 520px;
  margin: 24px auto 0;
}

.h-wgrid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.h-wg {
  --sz: 200px;
  position: relative;
  width: var(--sz);
  height: var(--sz);
  border-radius: calc(var(--sz) * .16);
  overflow: hidden;
  background: #2F2D39;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.h-wg--lg {
  --sz: 250px;
}

.h-wg--memories {
  transform: rotate(-3deg);
}

.h-wg--days {
  transform: rotate(2deg);
}

.h-wg--distance {
  transform: rotate(-2deg);
  border-radius: calc(var(--sz) * .184);
}

.h-wg--canvas {
  transform: rotate(3deg);
}

.h-wg > img.h-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-wg--days::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.h-wg-faces {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(var(--sz) * .12);
  display: flex;
  justify-content: center;
}

.h-wg-faces img {
  width: calc(var(--sz) * .344);
  height: calc(var(--sz) * .344);
  border-radius: 50%;
  border: calc(var(--sz) * .016) solid #fff;
  object-fit: cover;
}

.h-wg-faces img + img {
  margin-left: calc(var(--sz) * -.048);
}

.h-wg-count {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(var(--sz) * .136);
}

.h-wg-count b {
  display: block;
  font-size: calc(var(--sz) * .132);
  font-weight: 700;
}

.h-wg-count span {
  font-size: calc(var(--sz) * .1);
  opacity: .85;
}

.h-wg-km {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  padding: calc(var(--sz) * .024) calc(var(--sz) * .064);
  border-radius: 999px;
  background: #fff;
  color: #0F0E13;
  font-size: calc(var(--sz) * .076);
  font-weight: 700;
  white-space: nowrap;
}

.h-wg-pin {
  position: absolute;
  width: calc(var(--sz) * .28);
  height: calc(var(--sz) * .28);
  border-radius: 50%;
  border: calc(var(--sz) * .016) solid #fff;
  object-fit: cover;
}

.h-wg-pin--a {
  left: 16%;
  top: 46%;
}

.h-wg-pin--b {
  right: 16%;
  top: 52%;
}

.h-wl {
  margin-top: 24px;
  text-align: left;
}

.h-wl .h-cap {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

.h-wl p {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Pairing ---------- */

.h-pair {
  padding: 120px 0;
  text-align: center;
}

.h-code {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 20px;
}

.h-code span {
  width: 76px;
  height: 92px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
}

.h-code span.on {
  background: linear-gradient(160deg, rgba(255, 66, 94, .22), rgba(255, 138, 91, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 138, 91, .5), 0 0 40px rgba(255, 66, 94, .25);
}

.h-pair .h-lead {
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- FAQ (night) ---------- */

.h-faq {
  padding: 40px 0 40px;
}

.h-faq .faq-layout > header .h-h2 {
  font-size: 56px;
  letter-spacing: -2.2px;
}

.h-faq .faq,
.h-faq .faq details {
  border-color: rgba(255, 255, 255, .12);
}

.h-faq .faq summary {
  color: #fff;
}

.h-faq .faq summary::after {
  background:
    linear-gradient(#7EE0D9, #7EE0D9) center / 14px 2px no-repeat,
    linear-gradient(#7EE0D9, #7EE0D9) center / 2px 14px no-repeat;
}

.h-faq .faq details[open] summary::after {
  background: linear-gradient(#7EE0D9, #7EE0D9) center / 14px 2px no-repeat;
}

.h-faq .faq details p {
  color: rgba(255, 255, 255, .66);
}

/* ---------- Final ---------- */

.h-final {
  position: relative;
  padding: 140px 0 160px;
  text-align: center;
  overflow: hidden;
}

.h-final-glow {
  left: 50%;
  top: 40px;
  width: 700px;
  height: 520px;
  margin-left: -350px;
  background: rgba(255, 66, 94, .28);
}

.h-appicon {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(255, 66, 94, .35);
}

.h-final .h-h2 {
  margin-top: 44px;
  font-size: 96px;
  letter-spacing: -4.5px;
}

.h-final .h-lead {
  margin: 24px auto 40px;
}

.h-final .store-row {
  justify-content: center;
}

/* Dark footer variant for the homepage */
.site-footer--dark {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, .08);
  background: var(--plum-deep);
  color: #fff;
}

.site-footer--dark a {
  color: rgba(255, 255, 255, .66);
}

.site-footer--dark a:hover {
  color: #fff;
}

.site-footer--dark .footer-tagline,
.site-footer--dark .footer-bottom {
  color: rgba(255, 255, 255, .5);
}

.site-footer--dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, .08);
}

.site-footer--dark .brand {
  color: #fff;
}

/* ---------- Motion ---------- */

@keyframes h-fly {
  0% { offset-distance: 0%; opacity: 0; transform: scale(.6); }
  8% { opacity: 1; transform: scale(1); }
  46% { offset-distance: 100%; opacity: 1; transform: scale(1); }
  54% { offset-distance: 100%; opacity: 0; transform: scale(.7); }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes h-ntf-in {
  0%, 46% { opacity: 0; transform: translateY(-14px) scale(.96); margin-bottom: -74px; }
  56%, 92% { opacity: 1; transform: none; margin-bottom: 0; }
  100% { opacity: 0; transform: none; margin-bottom: 0; }
}

@keyframes h-dash {
  to { stroke-dashoffset: -40; }
}

@keyframes h-reveal {
  0%, 30% { filter: blur(6px); opacity: .6; }
  45%, 90% { filter: blur(0); opacity: 1; }
  100% { filter: blur(6px); opacity: .6; }
}

@keyframes h-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .h-fly {
    display: none;
  }

  .h-ntf--new,
  .h-ans--leo,
  .h-doodle,
  .h-arc path {
    animation: none;
  }

  .h-doodle {
    transform: rotate(-5deg);
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1240px) {
  .h-duo {
    transform: translateX(-50%) scale(.8);
    transform-origin: 50% 0;
    margin-bottom: -160px;
  }

  .h-ch {
    gap: 64px;
  }

  .h-vis {
    transform: scale(.86);
    transform-origin: 0 50%;
  }

  .h-ch--flip .h-vis {
    transform-origin: 100% 50%;
  }

  .h-wgrid {
    flex-wrap: wrap;
  }
}

@media (max-width: 1000px) {
  .h-title {
    font-size: 96px;
    letter-spacing: -4px;
  }

  .h-duo {
    transform: translateX(-50%) scale(.62);
    margin-bottom: -304px;
  }

  .h-h2 {
    font-size: 56px;
    letter-spacing: -2.4px;
  }

  .h-ch h3 {
    font-size: 42px;
  }

  .h-vis {
    transform: scale(.7);
  }

  .h-sunset-line {
    font-size: 68px;
  }

  .h-final .h-h2 {
    font-size: 72px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  .h-wrap {
    padding: 0 16px;
  }

  .h-hero {
    padding-top: 28px;
  }

  .h-title {
    font-size: 54px;
    letter-spacing: -2.6px;
  }

  .h-title .h-lt {
    letter-spacing: -2.2px;
  }

  .h-sub {
    margin: 18px auto 24px;
    padding: 0 8px;
    font-size: 16px;
  }

  .h-hero .store-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .h-hero .btn-store {
    flex: 1;
    justify-content: center;
    padding: 0 12px;
  }

  .h-hero .btn-store small {
    display: none;
  }

  .h-hero .btn-store b {
    font-size: 15px;
  }

  /* Phone stage: its own 390px composition */
  .h-duo {
    width: 390px;
    height: 500px;
    margin: 36px 0 0;
    transform: translateX(-50%);
  }

  .h-phone {
    top: 30px;
    width: 200px;
    height: 433px;
    border-radius: 36px;
    box-shadow: 0 0 0 6px #1d1c22, 0 30px 60px rgba(110, 40, 55, .28);
  }

  .h-phone--leo {
    left: -6px;
    transform: rotate(-6deg);
  }

  .h-phone--emma {
    left: 196px;
    transform: rotate(6deg);
  }

  .h-screen {
    transform: scale(.5128);
  }

  .h-arc,
  .h-who {
    display: none;
  }

  .h-fly {
    padding: 7px 12px;
    font-size: 11px;
    offset-path: path('M 92 102 C 150 -40, 290 -40, 296 214');
  }

  .h-duo-fade {
    left: 0;
    right: 0;
    bottom: -140px;
    height: 440px;
  }

  .h-h2 {
    font-size: 42px;
    letter-spacing: -1.8px;
  }

  .h-h2 .h-lt {
    letter-spacing: -1.4px;
  }

  .h-intro {
    padding: 8px 0;
    text-align: left;
  }

  .h-rail {
    left: 23px;
    top: 290px;
    transform: none;
  }

  .h-ch,
  .h-ch--flip {
    display: block;
    padding: 56px 0 24px 40px;
  }

  .h-ch-copy,
  .h-ch--flip .h-ch-copy {
    max-width: none;
    text-align: left;
  }

  .h-ch-copy .h-lead {
    max-width: none;
    margin-left: 0;
    font-size: 15px;
  }

  .h-knot {
    left: 23px;
    top: 74px;
    margin: -9px 0 0 -8px;
  }

  .h-ch h3 {
    margin: 16px 0 12px;
    font-size: 36px;
    letter-spacing: -1.4px;
  }

  .h-vis,
  .h-ch--flip .h-vis {
    height: 330px;
    margin-top: 28px;
    transform: none;
  }

  .h-sun {
    right: -80px;
    top: -60px;
    width: 260px;
    height: 260px;
  }

  .h-spark {
    left: 0;
    top: 0;
    width: 310px;
    padding: 20px;
    border-radius: 26px;
  }

  .h-spark-q {
    margin-right: 56px;
    font-size: 18px;
  }

  .h-spark-art {
    right: 18px;
    top: 18px;
    width: 48px;
  }

  .h-ans {
    width: 280px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
  }

  .h-ans img {
    width: 30px;
    height: 30px;
  }

  .h-ans--emma {
    left: 0;
    top: 190px;
  }

  .h-ans--leo {
    left: 30px;
    top: 262px;
  }

  .h-doodle {
    left: 0;
    top: 40px;
    width: 200px;
    height: 200px;
    border-radius: 38px;
  }

  .h-banner {
    right: -10px;
    top: 0;
    width: 250px;
  }

  .h-banner .h-ntf {
    gap: 10px;
    padding: 10px 12px;
  }

  .h-banner .h-ntf-text {
    font-size: 13px;
    line-height: 16px;
  }

  .h-banner .h-ntf-icon {
    width: 32px;
    height: 32px;
  }

  .h-sticky {
    left: 150px;
    top: 262px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .h-sticky-dot--lg {
    left: 146px;
    top: 312px;
    width: 12px;
    height: 12px;
  }

  .h-sticky-dot--sm {
    left: 136px;
    top: 328px;
    width: 6px;
    height: 6px;
  }

  .h-sunset {
    padding: 220px 0 170px;
  }

  .h-orb {
    top: 70px;
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }

  .h-sunset .h-stamp {
    margin-bottom: 20px;
  }

  .h-sunset-line {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .h-sunset-line .h-lt {
    letter-spacing: -1.6px;
  }

  .h-date-glow {
    left: 0;
    top: 20px;
    width: 300px;
    height: 300px;
  }

  .h-date-photo {
    left: 0;
    top: 0;
    width: 250px;
    height: 300px;
    border-radius: 28px;
  }

  .h-date-tile {
    right: 0;
    bottom: 0;
    width: 160px;
    height: 160px;
    padding: 16px;
    border-radius: 24px;
  }

  .h-date-tile img {
    width: 44px;
    height: 44px;
  }

  .h-date-tile .b {
    font-size: 20px;
  }

  .h-date-tile .s {
    font-size: 13px;
  }

  .h-ch--quiz .h-vis {
    height: 280px;
  }

  .h-quiz-glow {
    left: 0;
    top: 60px;
    width: 320px;
    height: 260px;
  }

  .h-q {
    width: 140px;
    border-radius: 20px;
  }

  .h-q h4 {
    font-size: 14px;
  }

  .h-q--a {
    left: -8px;
    top: 96px;
  }

  .h-q--b {
    left: 166px;
    top: 96px;
  }

  .h-q--c {
    left: 80px;
    top: 56px;
  }

  .h-yourmove {
    left: 100px;
    top: 12px;
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .h-widgets {
    padding: 96px 0 72px;
    text-align: left;
  }

  .h-widgets-glow {
    left: -100px;
    width: 600px;
    margin-left: 0;
  }

  .h-widgets .h-lead {
    margin: 18px 0 0;
  }

  .h-wgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 40px;
    justify-items: center;
  }

  .h-wg,
  .h-wg--lg {
    --sz: 150px;
  }

  .h-wl p {
    font-size: 15px;
  }

  .h-pair {
    padding: 72px 0;
    text-align: left;
  }

  .h-code {
    justify-content: flex-start;
    gap: 6px;
    margin: 28px 0 18px;
  }

  .h-code span {
    width: 52px;
    height: 64px;
    border-radius: 16px;
    font-size: 28px;
  }

  .h-pair .h-lead {
    margin: 0;
  }

  .h-faq .faq-layout > header .h-h2 {
    font-size: 40px;
  }

  .h-final {
    padding: 96px 0 110px;
  }

  .h-appicon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  .h-final .h-h2 {
    margin-top: 32px;
    font-size: 48px;
    letter-spacing: -2px;
  }

  .h-final .h-lead {
    margin: 18px auto 28px;
  }

  .h-final .store-row {
    flex-direction: column;
  }

  .h-final .btn-store {
    justify-content: center;
  }
}

/* Guides row (links to /blog/ articles) */
.h-guides {
  padding: 120px 0 40px;
  text-align: center;
}
.h-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.h-guide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.h-guide:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  transform: translateY(-2px);
}
.h-guide b {
  font-size: 21px;
  line-height: 1.25;
}
.h-guide > span:last-child {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .66);
}
.h-guides-more {
  margin-top: 28px;
  font-size: 16px;
}
.h-night .h-guides-more a {
  color: var(--teal-light);
}
@media (max-width: 900px) {
  .h-guide-list {
    grid-template-columns: 1fr;
  }
  .h-guides {
    padding-top: 88px;
  }
}
