:root {
  color-scheme: light;
  --ink: #292337;
  --muted: #756f7d;
  --purple: #68529c;
  --line: #ded9e3;
}

* { box-sizing: border-box; }
html { background: #fbfaf8; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #9274c8; outline-offset: 5px; border-radius: 4px; }
h1, h2, p { margin: 0; }
.shell { width: min(100% - 64px, 1180px); margin: 0 auto; }

.site-header {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.studio-link { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.studio-link:hover { color: var(--purple); }

.hero {
  min-height: min(690px, calc(100svh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: center;
  gap: clamp(36px, 5vw, 85px);
  padding: 45px 0 70px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  max-width: 650px;
  font-size: clamp(62px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -.035em;
  word-spacing: .06em;
  font-weight: 650;
}
.hero h1 em {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98em;
  font-weight: 400;
  letter-spacing: -.04em;
}
.memory-word { display: inline-block; position: relative; white-space: nowrap; }
.memory-word svg { position: absolute; left: 0; bottom: -.19em; width: 100%; height: .23em; overflow: visible; }
.memory-word path { fill: none; stroke: #d6aea5; stroke-width: 5; stroke-linecap: round; }
.hero p { max-width: 495px; margin-top: 36px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
  padding: 17px 21px;
  border-radius: 13px;
  background: var(--purple);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.download:hover { transform: translateY(-3px); background: #503b7e; }

.memory-art { position: relative; height: 485px; }

.motion-ready .memory-word path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-memory 1.25s .4s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes draw-memory { to { stroke-dashoffset: 0; } }

@media (max-width: 950px) and (min-width: 701px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 40px; min-height: 0; padding-top: 75px; }
  .hero-copy { max-width: 700px; }
  .memory-art { width: min(100%, 480px); align-self: center; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 36px, 520px); }
  .site-header { min-height: 76px; }
  .studio-link { font-size: 12px; }
  .brand { font-size: 20px; }
  .brand img { width: 35px; height: 35px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 57px; min-height: 0; padding: 73px 0 62px; }
  .hero h1 { font-size: clamp(51px, 10.5vw, 72px); }
  .hero p { margin-top: 29px; font-size: 17px; }
  .download { margin-top: 28px; font-size: 15px; }
  .memory-art { width: min(100%, 360px); height: 395px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .memory-word path { animation: none; stroke-dashoffset: 0; }
  .download { transition: none; }
}

/* ---------- features ---------- */
.bento { padding: 40px 0 110px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { margin-bottom: 16px; color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em; }
.section-head h2 em, .closing h2 em { color: var(--purple); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.03em; }
.bento-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid transparent; border-radius: 26px; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(68, 48, 93, .1); }
.tile h3 { margin: 18px 0 10px; font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.tile p { color: #675f72; font-size: 15px; line-height: 1.6; }
.tile-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .65); font-size: 23px; }
.tile-days { grid-column: span 3; grid-row: span 2; background: #f2d8e2; color: #4b2b3d; }
.tile-days .tile-label { color: #8b5a70; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.days-number { margin: auto 0 4px !important; padding-top: 40px; color: #3b2245 !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(88px, 10vw, 140px) !important; line-height: 1 !important; letter-spacing: -.06em; }
.days-number span { margin-left: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: .2em; font-weight: 600; letter-spacing: 0; }
.tile-days .tile-text { max-width: 400px; color: #6b4a5c; }
.goal { margin-top: 26px; }
.goal-bar { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .6); }
.goal-bar span { display: block; width: 48%; height: 100%; border-radius: inherit; background: #68529c; }
.goal-marks { display: flex; justify-content: space-between; margin-top: 8px; color: #7d5f70; font-size: 12px; font-weight: 600; }
.tile-remind { grid-column: span 3; background: #eee8f4; }
.tile-milestones { grid-column: span 3; background: #dfeadf; }
.tile-profile { grid-column: span 2; background: #f7e3d6; }
.tile-themes { grid-column: span 4; background: #ece8e1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.tile-themes .tile-icon { flex: none; }
.tile-themes h3, .tile-themes p { flex: 1 1 100%; }
.tile-themes p { max-width: 520px; }
.chips, .swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .7); color: #3f6248; font-size: 13px; font-weight: 700; }
.swatches { flex: 1 1 100%; }
.swatches i { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }

.closing { margin-bottom: 70px; padding: clamp(44px, 7vw, 84px); border-radius: 34px; background: #3c2d5e; color: #fff; }
.closing h2 { max-width: 700px; font-size: clamp(40px, 5.2vw, 70px); font-weight: 650; line-height: 1.04; letter-spacing: -.04em; }
.closing h2 em { color: #e6c3b9; }
.closing p { max-width: 460px; margin-top: 22px; color: #cfc4e2; font-size: 18px; line-height: 1.6; }
.download-light { background: #fff; color: #3c2d5e; }
.download-light:hover { background: #f0e8fb; }

@media (max-width: 900px) {
  .tile-days, .tile-remind, .tile-milestones { grid-column: span 6; }
  .tile-days { grid-row: auto; }
  .tile-profile { grid-column: span 3; }
  .tile-themes { grid-column: span 3; }
}
@media (max-width: 700px) {
  .bento { padding: 20px 0 80px; }
  .section-head { margin-bottom: 30px; }
  .bento-grid { gap: 12px; }
  .tile { padding: 24px; border-radius: 22px; }
  .tile-profile, .tile-themes { grid-column: span 6; }
  .closing { margin-bottom: 44px; border-radius: 26px; padding: 36px 26px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* ---------- hero art: event cards ---------- */
.memory-art::before { content: ""; position: absolute; inset: 6% 4% 4% 8%; border-radius: 40px; background: linear-gradient(155deg, #efe8f6, #f7e3d6); transform: rotate(-3deg); }
.art-days, .art-card { position: absolute; display: flex; align-items: center; border: 1px solid rgba(104, 82, 156, .1); background: #fff; box-shadow: 0 18px 40px rgba(68, 48, 93, .12); animation: art-float 7s ease-in-out infinite; }
.art-days { top: 46px; left: 50%; gap: 16px; min-width: 268px; padding: 20px 26px; border-radius: 26px; background: #68529c; color: #fff; translate: -50% 0; }
.art-heart { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 22px; }
.art-days strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 50px; font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.art-days span:not(.art-heart) { display: block; margin-top: 4px; color: #d9cdf0; font-size: 14px; font-weight: 600; }
.art-card { gap: 14px; width: 292px; padding: 17px 20px; border-radius: 22px; }
.art-emoji { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 14px; background: #f1ecf8; font-size: 22px; }
.art-card b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.art-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.art-check { margin-left: auto; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #dfeadf; color: #3f6248; font-size: 13px; font-weight: 700; }
.art-a { top: 170px; left: 3%; animation-delay: -1.5s; }
.art-a .art-emoji { background: #f7e3d6; }
.art-b { top: 265px; right: 2%; animation-delay: -3s; }
.art-b .art-emoji { background: #f2d8e2; }
.art-c { top: 360px; left: 8%; animation-delay: -4.5s; }
.art-c .art-emoji { background: #dfeadf; }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 700px) {
  .memory-art { width: min(100%, 360px); height: 420px; align-self: center; }
  .art-days { top: 30px; min-width: 240px; padding: 16px 22px; }
  .art-days strong { font-size: 42px; }
  .art-card { width: 262px; padding: 14px 16px; }
  .art-a { top: 140px; left: 0; } .art-b { top: 228px; right: 0; } .art-c { top: 316px; left: 4%; }
}
