/* Spatial refinement: white page, raised objects, one clear interaction surface. */
@font-face {
  font-family: "Lovecho Display";
  src: url("./assets/fonts/noto-sans-sc-display.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Lovecho Wordmark";
  src: url("./assets/fonts/manrope-wordmark.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --display: "Lovecho Display", var(--sans);
  --stage: #f5f6f8;
  --text-secondary: #62666c;
  --space-close: 16px;
  --space-group: 24px;
  --space-section: 96px;
  --floating-shadow: 0 12px 32px #20242b14;
}
html { scrollbar-color: #c4c7cc #fff; }
.wordmark { font-family: "Lovecho Wordmark", var(--sans); font-weight: 600; letter-spacing: -.04em; }
.intro-copy h1, .hero-copy h1, .section-heading h2,
.connection-header h2, .closing-content h2, dialog h2 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}
.site-header.scrolled, body.scrolled .site-header {
  background: #fffffffa;
  box-shadow: 0 6px 24px #20242b05;
}
.main-nav a, .status-link { font-size: 12px; color: #62666c; }
.intro-footer, .hero-bottom, .hero-bottom a { color: #686d74; }
.intro-footer, .intro-footer .platform { font-size: 11px; }
.product-hero { grid-template-columns: .92fr 1.08fr; gap: 32px; }
.hero-copy h1 { font-size: clamp(48px, 4.9vw, 76px); line-height: 1.27; letter-spacing: -.035em; margin-bottom: 32px; }
.hero-description { max-width: 28em; font-size: 16px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 32px; }
.hero-actions { gap: 24px; }
.primary-button { min-height: 48px; padding: 14px 22px; font-size: 13px; border-radius: 8px; gap: 24px; box-shadow: 0 4px 8px #20242b12, 0 12px 24px #20242b16; }
.primary-button:active { box-shadow: 0 2px 6px #20242b18; }
.intro-heart-shadow { background: #40252b1c; filter: blur(12px); box-shadow: 0 10px 18px #30202912; }
.optical-punctuation { display: inline-block; inline-size: .5em; text-align: left; }
.intro-copy .enter-link { position: relative; display: inline-block; padding-inline: 15px; }
.intro-copy .enter-link > svg { position: absolute; inset-inline-start: calc(100% - 4px); top: 50%; transform: translateY(-50%); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: #62666c; }
.watch-composition {
  height: 600px;
  max-width: 620px;
  transform: none !important;
  transform-origin: center;
}
.watch-composition .watch-front {
  --case-w: 228px;
  --case-h: 274px;
  left: 18%;
  top: 36%;
  transform: rotate(-9deg);
}
.watch-composition .watch-back {
  --case-w: 165px;
  --case-h: 198px;
  right: 20%;
  top: 14%;
  transform: rotate(13deg);
}
.watch-composition[data-ui] .watch-front { filter: drop-shadow(9px 22px 18px #20242b26); }
.watch-composition[data-ui] .watch-back { filter: drop-shadow(4px 11px 16px #20242b12); }
.watch-composition .demo-label { top: 24px; bottom: auto; left: 14%; transform: none; font-size: 11px; letter-spacing: 0; color: #686d74; }
.watch-composition .demo-label > span { display: none; }
.watch-composition .connection-dots { left: 47%; top: 34%; transform: rotate(-42deg); }
.watch .watch-reply { min-height: 32px; padding: 7px; }
.watch .watch-reply::after { content: ""; position: absolute; inset: -6px 0; }
.watch .watch-reply { position: relative; }
.watch { --watch-heart-width: 75px; --watch-heart-height: 71px; }
.watch-back { --watch-heart-width: 61px; --watch-heart-height: 58px; }
.watch-heart-control { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: var(--watch-heart-width); height: var(--watch-heart-height); padding: 0; margin: 0; border: 0; border-radius: 32%; background: none; cursor: pointer; }
.watch .watch-heart-control .watch-heart { width: 100%; height: 100%; margin: 0; flex-shrink: 0; }
.watch-heart-control:focus-visible { outline: 2px solid #f5b6bd; outline-offset: 4px; }
.watch-heart-control:disabled { cursor: default; opacity: 1; }
.watch .watch-message { position: absolute; left: 6px; right: 6px; top: calc(50% + var(--watch-heart-height) / 2 + 8px); min-height: 1.5em; margin: 0; text-align: center; }
.watch .watch-person { position: absolute; left: 6px; right: 6px; bottom: calc(50% + var(--watch-heart-height) / 2 + 10px); margin: 0; text-align: center; }
.watch-webgl-ready .watch-heart { visibility: hidden; }
.watch-composition .connection-dots { display: none; }
body:not(.watch-webgl-ready) .watch-heart-control .watch-heart { transition: transform .25s, opacity .25s; }
body:not(.watch-webgl-ready) .demo-playing[data-demo-direction="send"] #watch-send .watch-heart,
body:not(.watch-webgl-ready) .demo-playing[data-demo-direction="reply"] #watch-reply .watch-heart { animation: watch-fallback-send 1.5s ease-in-out both; }
body:not(.watch-webgl-ready) .demo-playing[data-demo-direction="send"] #watch-reply .watch-heart,
body:not(.watch-webgl-ready) .demo-playing[data-demo-direction="reply"] #watch-send .watch-heart { animation: watch-fallback-receive 5.75s ease-in-out both; }
@keyframes watch-fallback-send { 0%,100% { opacity: 1; transform: scale(1); } 22% { transform: translateY(4px) scale(.95); } 38% { transform: translateY(3px) scale(1.09); } 75% { opacity: .25; transform: scale(.94); } }
@keyframes watch-fallback-receive { 0% { opacity: 1; } 8%,50% { opacity: .2; transform: scale(.96); } 70% { opacity: 1; transform: scale(1); } 77% { transform: translateY(4px) scale(1.09); } 90%,100% { opacity: 1; transform: scale(1); } }

.gestures-section { display: block; padding-top: var(--space-section); padding-bottom: 128px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 48px; }
.section-heading h2, .connection-header h2 { font-size: 40px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 16px; }
.section-heading h2 { margin: 0; }
.section-heading > p:last-child, .connection-header > p:last-child {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
  color: var(--text-secondary);
  margin: 0;
}
.section-heading > p:last-child { text-align: right; }
.gesture-experience { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding-top: 0; }
.gesture-art {
  height: 400px;
  margin: 0;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--stage);
  box-shadow: 0 8px 16px #20242b07, 0 28px 52px #20242b19;
}
.gesture-symbol { width: 124px; height: 118px; margin-bottom: 24px; filter: drop-shadow(0 12px 10px #72213820); }
.gesture-art > p { font-size: 24px; letter-spacing: 0; margin-bottom: 12px; }
.gesture-art > span { color: #62666c; font-size: 14px; letter-spacing: 0; }
.gesture-art .gesture-demo-note { font-size: 12px; color: #686d74; margin-top: 24px; }
.gesture-option { min-height: 100px; padding: 22px 24px; border-radius: 12px; margin: 8px 0; transition: background .2s, color .2s; }
.gesture-option.active { background: #f8eff1; color: #9d263b; box-shadow: 0 6px 14px #7420360b; }
.gesture-option:hover { background: #f6f7f8; }
.gesture-option.active:hover { background: #f8eff1; }
.gesture-text { gap: 8px; }
.gesture-text strong { font-size: 19px; font-weight: 600; }
.gesture-text > span { font-size: 14px; color: #62666c; }
.gesture-option.active .gesture-arrow { transform: none; }
.gesture-arrow { width: 20px; height: 20px; }

.connection-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "heading diagram" "details diagram";
  gap: 40px 80px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 128px;
}
.connection-header { grid-area: heading; text-align: left; }
.connection-details { grid-area: details; display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; margin: 0; max-width: 440px; }
.connection-details > div { padding: 0; }
.connection-details h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #303237; }
.connection-details p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.connection-hearts { grid-area: diagram; width: 100%; min-height: 440px; position: relative; }
.connection-heart { position: absolute; width: 26%; max-width: 132px; aspect-ratio: 100/94; top: 62%; left: 21%; transform: translate(-50%, -50%); }
.connection-heart:nth-child(2) { left: 79%; top: 22%; width: 23%; max-width: 116px; }
.connection-heart svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 12px #7420361f); }
.webgl-ready .connection-heart svg { visibility: hidden; }
.connection-heart::after { content: ""; position: absolute; left: 18%; width: 64%; height: 12px; top: calc(100% + 8px); border-radius: 50%; background: #4c2b351c; filter: blur(8px); }
.connection-hearts.is-active .connection-heart::after { animation: connection-shadow 4.8s ease-in-out infinite; }
.connection-hearts.is-active .connection-heart:nth-child(2)::after { animation-delay: .38s; }
@keyframes connection-shadow { 0%,65%,100% { opacity: .7; transform: scale(1); } 18% { opacity: .5; transform: scale(.94); } 40% { opacity: .85; transform: scale(1.06); } }
.closing-section { padding-top: 96px; padding-bottom: 112px; }
.closing-content h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.35; letter-spacing: -.03em; }
.closing-line { display: block; white-space: nowrap; }
/* Trim the empty half of CJK punctuation so the visible lines center optically. */
.closing-punctuation { display: inline-block; inline-size: .5em; text-align: left; }
.closing-content > p { font-size: 16px; line-height: 1.9; color: var(--text-secondary); }
.closing-heart { width: 56px; height: 54px; margin-top: 0; margin-bottom: 32px; filter: drop-shadow(0 12px 10px #74203626); }
.site-footer { border-color: #edeef0; gap: 24px; }
.site-footer > span, .site-footer button, .site-footer > div > span { font-size: 12px; color: #686d74; }
.site-footer button { min-height: 44px; }
.toast { box-shadow: var(--floating-shadow); color: #4b5058; font-size: 13px; }
dialog { border-radius: 16px; box-shadow: 0 20px 64px #161c2a26; }
dialog::backdrop { background: #20242b40; }

@media (min-width: 761px) and (max-width: 1100px) {
  .product-hero { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-copy h1 { font-size: 52px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 16px; flex-wrap: wrap; }
  .watch-composition { height: 520px; }
  .watch-composition .watch-front { --case-w: 184px; --case-h: 224px; left: 10%; top: 41%; }
  .watch-composition .watch-back { --case-w: 142px; --case-h: 172px; right: 10%; top: 16%; }
  .watch { --watch-heart-width: 68px; --watch-heart-height: 64px; }
  .watch-back { --watch-heart-width: 50px; --watch-heart-height: 48px; }
  .section-heading { gap: 24px; }
  .section-heading h2, .connection-header h2 { font-size: 32px; }
  .gesture-experience { gap: 32px; }
  .gesture-art { height: 360px; }
  .connection-section { gap: 32px; }
  .connection-hearts { min-height: 400px; }
}
@media (max-width: 760px) {
  :root { --space-section: 72px; }
  .product-hero { grid-template-columns: 1fr; min-height: 940px; padding-top: 128px; padding-bottom: 64px; gap: 0; }
  .hero-copy h1 { font-size: 44px; line-height: 1.3; margin-bottom: 24px; }
  .hero-description { font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; }
  .primary-button { font-size: 12px; min-height: 46px; padding: 12px 18px; gap: 20px; }
  .text-link { font-size: 12px; }
  .watch-composition { height: 460px; width: 100%; max-width: 400px; margin: 32px 0 24px; }
  .watch-composition .watch-front { --case-w: 174px; --case-h: 211px; left: 13%; top: 40%; }
  .watch-composition .watch-back { --case-w: 128px; --case-h: 154px; right: 8%; top: 17%; }
  .watch { --watch-heart-width: 58px; --watch-heart-height: 56px; }
  .watch-back { --watch-heart-width: 44px; --watch-heart-height: 44px; }
  .watch-composition .demo-label { top: 16px; left: 8%; }
  .watch-composition .connection-dots { left: 54%; top: 35%; }
  .hero-bottom { font-size: 11px; }
  .hero-bottom a { font-size: 11px; }
  .gestures-section { padding-top: 72px; padding-bottom: 88px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2, .connection-header h2 { font-size: 30px; margin-bottom: 16px; }
  .section-heading > p:last-child, .connection-header > p:last-child { font-size: 14px; line-height: 1.85; text-align: left; }
  .gesture-experience { grid-template-columns: 1fr; gap: 28px; }
  .gesture-art { height: 328px; padding: 32px 20px; }
  .gesture-symbol { width: 108px; height: 102px; margin-bottom: 24px; }
  .gesture-art > p { font-size: 22px; }
  .gesture-art > span { font-size: 13px; }
  .gesture-art .gesture-demo-note { font-size: 12px; }
  .gesture-option { min-height: 88px; padding: 18px 20px; margin: 4px 0; }
  .gesture-text strong { font-size: 17px; }
  .gesture-text > span { font-size: 13px; }
  .connection-section { grid-template-columns: 1fr; grid-template-areas: "heading" "diagram" "details"; gap: 32px; padding-top: 48px; padding-bottom: 88px; }
  .connection-hearts { min-height: 360px; }
  .connection-details { padding: 0; gap: 28px; }
  .connection-details > div { display: block; }
  .connection-details p { font-size: 14px; }
  .closing-section { padding-top: 56px; padding-bottom: 80px; }
  .closing-content h2 { font-size: 36px; }
  .closing-content > p { font-size: 14px; }
  .site-footer { gap: 12px; }
  .site-footer > span, .site-footer button, .site-footer > div > span { font-size: 11px; }
  .receiver { min-width: 44px; min-height: 44px; }
  .toast { white-space: normal; width: max-content; max-width: calc(100% - 40px); text-align: center; }
}
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 40px; }
  .hero-actions { gap: 12px; }
  .watch-composition .watch-front { --case-w: 160px; --case-h: 194px; left: 9%; }
  .watch-composition .watch-back { --case-w: 119px; --case-h: 144px; right: 6%; }
}
@media (max-width: 760px) and (max-height: 650px) {
  .heart-trigger { top: 37%; width: 210px; height: 194px; }
  .intro-heart-shadow { top: calc(37% + 126px); }
  .intro-copy { top: calc(37% + 152px); }
  .intro-copy h1 { font-size: 24px; }
  .intro-footer { bottom: 16px; }
}
