/* MiLove Website P1.4 — SwiftUI-matched HTML surfaces */
:root {
  --app-bg: #07080c;
  --app-panel: rgba(255, 255, 255, 0.062);
  --app-panel-strong: rgba(255, 255, 255, 0.09);
  --app-border: rgba(255, 255, 255, 0.13);
  --app-ink: #ffffff;
  --app-muted: rgba(255, 255, 255, 0.62);
  --app-faint: rgba(255, 255, 255, 0.42);
  --app-lavender: #9b7bcc;
  --app-rose: #d27b9a;
  --app-paper: #e1c8aa;
  --app-champagne: #c49558;
  --phone-radius: 3rem;
}

html { scroll-padding-top: 5.5rem; }
body.milove-light {
  background:
    radial-gradient(circle at 84% 4%, rgba(211, 197, 238, .52), transparent 29rem),
    radial-gradient(circle at 8% 24%, rgba(244, 219, 194, .48), transparent 26rem),
    linear-gradient(180deg, #fffaf5 0%, #fbf7f2 48%, #f8f2ed 100%);
}
.page-shell { overflow: clip; }
.site-header { background: rgba(255, 251, 246, .96); backdrop-filter: none !important; }
.glass, .glass-quiet { backdrop-filter: none !important; }
.reveal { transform: translateY(12px); transition-duration: .42s; }
.content-section { content-visibility: auto; contain-intrinsic-size: 900px; }
img { content-visibility: auto; }

.swiftui-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b7f8c;
}
.swiftui-label::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ad8ad5, #d485a1);
  box-shadow: 0 0 0 6px rgba(173, 138, 213, .1);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
}
.hero-copy { max-width: 39rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
}
.hero-proof span { display: inline-flex; align-items: center; gap: .42rem; }
.hero-proof span::before { content: "✓"; color: #748f7e; }

.showcase-board {
  position: relative;
  min-height: 720px;
  border: 1px solid rgba(91, 69, 94, .1);
  border-radius: 3rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 177, 236, .78), transparent 27%),
    radial-gradient(circle at 8% 82%, rgba(241, 207, 173, .62), transparent 32%),
    linear-gradient(145deg, #f4ecfb, #fff8ef 55%, #f1dfcb);
  box-shadow: 0 34px 90px rgba(91, 68, 94, .13);
  overflow: hidden;
  isolation: isolate;
}
.showcase-board::before,
.showcase-board::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(83, 62, 86, .08);
  pointer-events: none;
}
.showcase-board::before { width: 320px; height: 320px; right: -150px; top: -150px; }
.showcase-board::after { width: 240px; height: 240px; left: -120px; bottom: -120px; }
.hero-board .app-phone { position: absolute; right: 5%; top: 5%; width: min(420px, 76%); transform: rotate(1.8deg); }
.hero-board .paper-widget-card { position: absolute; left: 4%; top: 23%; width: 41%; transform: rotate(-7deg); }
.hero-board .floating-date { position: absolute; left: 7%; bottom: 8%; }

.app-phone {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: var(--phone-radius);
  padding: .58rem;
  background: linear-gradient(145deg, #5e5263, #302a35 58%, #64596a);
  box-shadow: 0 30px 75px rgba(54, 42, 57, .26), inset 0 0 0 1px rgba(255,255,255,.22);
  overflow: hidden;
}
.app-phone::after {
  content: "";
  position: absolute;
  inset: .27rem;
  border-radius: calc(var(--phone-radius) - .13rem);
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.app-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-radius) - .55rem);
  color: var(--app-ink);
  background:
    radial-gradient(circle at 96% 3%, rgba(142, 102, 194, .38), transparent 45%),
    radial-gradient(circle at 0 100%, rgba(221, 101, 145, .2), transparent 45%),
    linear-gradient(180deg, #0c0d13 0%, #07080c 100%);
}
.app-screen.theme-paper {
  background:
    radial-gradient(circle at 95% 4%, rgba(225, 200, 170, .24), transparent 43%),
    radial-gradient(circle at 0 100%, rgba(210, 123, 154, .14), transparent 43%),
    linear-gradient(180deg, #121014 0%, #08080c 100%);
}
.app-screen.theme-champagne {
  background:
    radial-gradient(circle at 96% 2%, rgba(196, 149, 88, .34), transparent 42%),
    radial-gradient(circle at 0 100%, rgba(221, 101, 145, .12), transparent 44%),
    linear-gradient(180deg, #14100c 0%, #09080a 100%);
}
.app-screen::before {
  content: "♥";
  position: absolute;
  right: -1.1rem;
  top: 2.2rem;
  font-size: 10rem;
  line-height: 1;
  color: rgba(255,255,255,.025);
  transform: rotate(18deg);
  pointer-events: none;
}
.app-island {
  position: absolute;
  z-index: 4;
  top: .7rem;
  left: 50%;
  width: 30%;
  height: 1.75rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #030306;
}
.app-status {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 1.05rem 1.25rem 0;
  font-size: .62rem;
  font-weight: 800;
  color: rgba(255,255,255,.86);
}
.app-content {
  position: relative;
  z-index: 2;
  height: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1rem 4.15rem;
}
.app-nav { display: flex; align-items: flex-start; justify-content: space-between; margin: .45rem .15rem 1rem; }
.app-nav h4 { font-size: 1.65rem; line-height: 1; font-weight: 850; letter-spacing: -.045em; }
.app-nav p { margin-top: .25rem; font-size: .62rem; font-weight: 650; color: var(--app-muted); }
.app-nav-actions { display: flex; gap: .45rem; }
.app-nav-button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--app-border);
  border-radius: .75rem;
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.84);
  font-weight: 800;
}

.swiftui-card {
  border: 1px solid var(--app-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025) 60%, transparent),
    rgba(255,255,255,.035);
  border-radius: 1.55rem;
  box-shadow: 0 .9rem 1.8rem rgba(0,0,0,.2);
}
.hero-relationship-card {
  position: relative;
  padding: 1.2rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.09)),
    linear-gradient(135deg, rgba(216, 197, 242, .24), rgba(205, 139, 164, .13) 58%, rgba(223, 197, 165, .15));
}
.hero-card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--app-muted); font-size: .57rem; font-weight: 900; letter-spacing: .08em; }
.couple-connection { display: grid; grid-template-columns: 5.25rem minmax(2.5rem, 1fr) 5.25rem; align-items: start; gap: .15rem; margin-top: 1rem; }
.couple-person { text-align: center; min-width: 0; }
.couple-person b { display: block; margin-top: .4rem; overflow: hidden; text-overflow: ellipsis; font-size: .67rem; white-space: nowrap; }
.avatar-photo {
  width: 4.55rem;
  height: 4.55rem;
  margin: 0 auto;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: .18rem solid rgba(255,255,255,.72);
  outline: .28rem solid rgba(255,255,255,.18);
  box-shadow: 0 .45rem 1rem rgba(0,0,0,.3);
}
.avatar-photo.small { width: 2.15rem; height: 2.15rem; border-width: .11rem; outline-width: .15rem; }
.avatar-photo.tiny { width: 1.65rem; height: 1.65rem; border-width: .08rem; outline-width: .11rem; }
.heart-connector { display: grid; grid-template-columns: 1fr 1.75rem 1fr; align-items: center; height: 4.55rem; }
.heart-connector::before,
.heart-connector::after { content: ""; height: 1px; background: rgba(255,255,255,.38); box-shadow: 0 0 .5rem rgba(255,255,255,.22); }
.heart-connector span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.12); font-size: .65rem; }
.day-count { text-align: center; margin: .75rem 0 .9rem; }
.day-count strong { display: block; font-size: 3.45rem; line-height: .95; font-weight: 900; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.day-count b { display: block; margin-top: .35rem; font-size: .82rem; }
.day-count small { display: block; margin-top: .24rem; color: var(--app-muted); font-size: .62rem; }
.hero-divider { height: 1px; background: rgba(255,255,255,.2); }
.together-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: .55rem; align-items: center; margin-top: .85rem; }
.together-icon { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .6rem; background: rgba(255,255,255,.08); font-size: .75rem; }
.together-row small { display: block; color: var(--app-muted); font-size: .52rem; font-weight: 700; }
.together-row b { display: block; font-size: .64rem; }
.together-row em { color: var(--app-muted); font-size: .55rem; font-style: normal; font-weight: 700; }
.together-row > span:last-child { color: var(--app-muted); font-size: .75rem; }

.up-next { margin-top: .9rem; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 0 .18rem .55rem; }
.section-row h5 { font-size: .82rem; font-weight: 850; }
.section-row span { color: #c3a8e7; font-size: .8rem; }
.upcoming-list { padding: .34rem .7rem; }
.upcoming-item { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; gap: .6rem; align-items: center; padding: .57rem 0; }
.upcoming-item + .upcoming-item { border-top: 1px solid rgba(255,255,255,.1); }
.upcoming-symbol { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 999px; background: rgba(155,123,204,.2); color: #d7c4f1; font-size: .65rem; }
.upcoming-copy { min-width: 0; }
.upcoming-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; }
.upcoming-copy small { display: block; margin-top: .12rem; color: var(--app-muted); font-size: .5rem; }
.upcoming-days { font-size: .55rem; font-weight: 900; color: var(--app-muted); font-variant-numeric: tabular-nums; }

.app-tabs {
  position: absolute;
  z-index: 5;
  left: .55rem;
  right: .55rem;
  bottom: .55rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: .48rem .2rem .38rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 1.25rem;
  background: rgba(20,20,27,.94);
  box-shadow: 0 -.4rem 1.4rem rgba(0,0,0,.22);
}
.app-tab { text-align: center; color: rgba(255,255,255,.44); font-size: .74rem; }
.app-tab small { display: block; margin-top: .12rem; font-size: .44rem; font-weight: 700; }
.app-tab.active { color: #c4a9e7; }

.paper-widget-card {
  aspect-ratio: 1.42 / 1;
  padding: 1.15rem;
  border: 1px solid rgba(89,64,57,.1);
  border-radius: 2rem;
  color: #3d2b20;
  background: linear-gradient(135deg, #fff4de, #dfc5a8);
  box-shadow: 0 2rem 4rem rgba(82,58,51,.18);
}
.paper-widget-card small { font-size: .57rem; font-weight: 900; letter-spacing: .14em; }
.paper-widget-card strong { display: block; margin-top: .95rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: .9; letter-spacing: -.06em; }
.paper-widget-card b { display: block; margin-top: .45rem; font-size: .78rem; }
.paper-widget-card footer { display: flex; justify-content: space-between; margin-top: 1.05rem; padding-top: .8rem; border-top: 1px solid rgba(61,43,32,.16); color: rgba(61,43,32,.68); font-size: .52rem; }
.floating-date { padding: .78rem 1rem; border: 1px solid rgba(91,68,94,.1); border-radius: 1.1rem; background: rgba(255,253,249,.91); box-shadow: 0 1rem 2rem rgba(91,68,94,.13); }
.floating-date b { display: block; font-size: .72rem; }
.floating-date small { color: var(--ink-soft); font-size: .58rem; }

.ui-preview-grid { display: grid; align-items: center; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr); }
.ui-preview-grid.reverse { grid-template-columns: minmax(360px, 1.18fr) minmax(0, .82fr); }
.ui-preview-grid.reverse .preview-copy { order: 2; }
.preview-copy { max-width: 36rem; }
.preview-frame {
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 2.75rem;
  overflow: hidden;
  background: linear-gradient(145deg, #eee7fa, #fff8ee 55%, #f1dfc9);
  box-shadow: var(--shadow);
}
.preview-frame .app-phone { width: min(370px, 92%); }

.timeline-screen .app-content { padding-bottom: 1rem; }
.filter-strip { display: flex; gap: .45rem; overflow: hidden; margin: -.2rem 0 .8rem; }
.filter-chip { min-width: 4.7rem; padding: .52rem .65rem; border: 1px solid var(--app-border); border-radius: 1rem; background: rgba(255,255,255,.055); color: var(--app-muted); }
.filter-chip b { display: block; color: #fff; font-size: .8rem; }
.filter-chip small { font-size: .48rem; font-weight: 800; }
.filter-chip.active { border-color: rgba(155,123,204,.72); background: rgba(155,123,204,.22); color: #fff; }
.timeline-heading b { display: block; font-size: .88rem; }
.timeline-heading small { display: block; margin-top: .14rem; color: var(--app-muted); font-size: .52rem; }
.timeline-flow { position: relative; margin-top: .8rem; padding-left: 2.25rem; }
.timeline-flow::before { content: ""; position: absolute; left: .82rem; top: 1rem; bottom: 1rem; width: 1px; background: rgba(255,255,255,.16); }
.timeline-entry { position: relative; margin-bottom: .65rem; }
.timeline-dot { position: absolute; left: -1.87rem; top: .9rem; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: #17141f; color: #c4a9e7; font-size: .48rem; }
.timeline-event { padding: .75rem; border-radius: 1.15rem; }
.timeline-event .event-top { display: flex; justify-content: space-between; gap: .5rem; color: var(--app-muted); font-size: .47rem; font-weight: 850; }
.timeline-event b { display: block; margin-top: .3rem; font-size: .66rem; }
.timeline-event p { margin-top: .18rem; color: var(--app-muted); font-size: .5rem; line-height: 1.35; }
.timeline-meta { display: flex; gap: .35rem; margin-top: .45rem; }
.timeline-meta span { padding: .2rem .38rem; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--app-muted); font-size: .4rem; font-weight: 750; }
.today-marker { display: flex; align-items: center; gap: .5rem; margin: .65rem 0; color: #fff; font-size: .48rem; font-weight: 900; letter-spacing: .12em; }
.today-marker::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.2); }

.widget-board { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: stretch; }
.widget-card {
  position: relative;
  min-height: 180px;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1.8rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(76,57,80,.18);
}
.widget-card::after { content: "♥"; position: absolute; right: -.6rem; bottom: -1.8rem; font-size: 7.5rem; color: rgba(255,255,255,.055); transform: rotate(-18deg); }
.widget-card.lavender { background: linear-gradient(135deg, #d9c7ff, #7d5cd1); }
.widget-card.midnight { background: linear-gradient(135deg, #1f193d, #523076); }
.widget-card.paper { color: #3a281c; background: linear-gradient(135deg, #faefd9, #ddc2a5); border-color: rgba(76,53,40,.1); }
.widget-card.champagne { color: #402e19; background: linear-gradient(135deg, #ffe8ad, #c28c47); border-color: rgba(64,46,25,.12); }
.widget-card small { font-size: .6rem; font-weight: 900; letter-spacing: .13em; }
.widget-card strong { display: block; margin-top: .7rem; font-size: 2.7rem; line-height: .9; letter-spacing: -.06em; }
.widget-card b { display: block; margin-top: .35rem; font-size: .78rem; }
.widget-card footer { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: .52rem; opacity: .75; }
.widget-card .widget-avatars { display: flex; align-items: center; margin-top: .85rem; }
.widget-card .widget-avatars img + img { margin-left: -.35rem; }
.widget-stack { display: grid; gap: 1rem; }
.widget-stack .widget-card { min-height: 0; }

.share-surface {
  width: min(520px, 92%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  border-radius: 3rem;
  background: linear-gradient(145deg, #eee6fb, #fbe8e8 52%, #f2dec3);
  box-shadow: 0 2rem 5rem rgba(91,68,94,.16);
}
.share-surface .hero-relationship-card { width: 100%; color: #fff; background: linear-gradient(135deg, #8f73b9, #c87998 58%, #bd8b57); box-shadow: 0 1.8rem 4rem rgba(84,57,85,.28); }

.theme-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.theme-card { padding: .85rem; text-align: center; }
.theme-card img { width: 100%; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 1.1rem 2.4rem rgba(91,68,94,.16); }
.theme-card b { display: block; margin-top: .8rem; font-size: .84rem; }
.theme-card small { color: var(--ink-soft); font-size: .68rem; }

.performance-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.performance-note article { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.5rem; background: rgba(255,255,255,.72); }
.performance-note b { display: block; font-size: .86rem; }
.performance-note p { margin-top: .35rem; color: var(--ink-soft); font-size: .76rem; line-height: 1.55; }

@media (max-width: 1023px) {
  .hero-grid, .ui-preview-grid, .ui-preview-grid.reverse { grid-template-columns: 1fr; }
  .ui-preview-grid.reverse .preview-copy { order: 0; }
  .hero-copy, .preview-copy { max-width: 44rem; }
  .showcase-board { min-height: 660px; }
}
@media (max-width: 700px) {
  .showcase-board { min-height: 570px; border-radius: 2rem; }
  .hero-board .app-phone { right: 2%; top: 5%; width: 82%; }
  .hero-board .paper-widget-card { left: 2%; top: 27%; width: 47%; }
  .hero-board .floating-date { display: none; }
  .preview-frame { min-height: auto; border-radius: 2rem; padding: 1.1rem; }
  .widget-board { grid-template-columns: 1fr; }
  .theme-cards { grid-template-columns: repeat(2, 1fr); }
  .performance-note { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .showcase-board { min-height: 500px; }
  .hero-board .app-phone { width: 88%; }
  .hero-board .paper-widget-card { width: 52%; }
  .couple-connection { grid-template-columns: 4.6rem minmax(2rem, 1fr) 4.6rem; }
  .avatar-photo { width: 4rem; height: 4rem; }
  .heart-connector { height: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-phone, .paper-widget-card { transform: none !important; }
}
