@import url('/fonts/m-plus-rounded-1c/400.css');
@import url('/fonts/m-plus-rounded-1c/500.css');
@import url('/fonts/m-plus-rounded-1c/700.css');
@import url('/fonts/m-plus-rounded-1c/800.css');
@import url('/fonts/m-plus-rounded-1c/900.css');

:root {
  --blue: #4c63ff;
  --blue-deep: #354de8;
  --coral: #ff6f91;
  --yellow: #ffd95a;
  --aqua: #7ddad4;
  --mint: #6ed39a;
  --cream: #fff7ea;
  --paper: #fffdf8;
  --ink: #2f2842;
  --ink-soft: #625a72;
  --line: rgba(47, 40, 66, 0.18);
  --paper-shadow: 0 16px 0 rgba(47, 40, 66, 0.12), 0 28px 60px rgba(47, 40, 66, 0.13);
  --soft-shadow: 0 12px 30px rgba(47, 40, 66, 0.12);
  --content: calc(100% - 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #e9e8f8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }

.site-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: clip;
  background: var(--cream);
  box-shadow: 0 0 70px rgba(47, 40, 66, 0.2);
}

@media (min-width: 768px) {
  body { background: var(--cream); }
  body::before, body::after {
    content: "";
    position: fixed;
    z-index: 0;
    top: 0;
    bottom: 0;
    width: calc((100% - 430px) / 2);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
  }
  body::before { left: 0; background-image: url("/assets/desktop-gutter-left.webp"); }
  body::after { right: 0; background-image: url("/assets/desktop-gutter-right.webp"); }
  .site-shell { position: relative; z-index: 1; }
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 10px;
  left: 50%;
  width: min(406px, calc(100% - 24px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(47, 40, 66, 0.15);
  border-radius: 999px;
  background: rgba(255, 247, 234, 0.88);
  box-shadow: 0 10px 40px rgba(47, 40, 66, 0.1);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.logo { position: relative; display: inline-flex; align-items: flex-start; color: var(--ink); font-weight: 900; line-height: .88; letter-spacing: -.075em; }
.logo__love { color: var(--blue); }
.logo__talk { color: var(--coral); }
.logo__heart { display: inline-block; width: .34em; height: .34em; margin: -.05em 0 0 .06em; color: var(--yellow); line-height: 1; }
.logo--compact { font-size: 22px; filter: none; }
.site-nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 2px solid var(--ink); border-radius: 28px; background: var(--cream); box-shadow: var(--paper-shadow); font-size: 13px; font-weight: 800; }
.site-nav.is-open { display: flex; }
.site-nav > a { display: block; padding: 15px 12px; border-bottom: 1px solid var(--line); }
.site-nav .line-button--header { margin-top: 12px; }
.menu-button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; }
.menu-button img, .menu-button svg { width: 23px; height: 23px; }

.line-button { min-height: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 18px 7px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); box-shadow: 0 8px 0 rgba(47, 40, 66, .24), 0 18px 32px rgba(47, 40, 66, .12); cursor: pointer; font-weight: 900; transition: transform 180ms ease, box-shadow 180ms ease; }
.line-button:hover { transform: translateY(-3px); box-shadow: 0 11px 0 rgba(47, 40, 66, .24), 0 22px 36px rgba(47, 40, 66, .15); }
.line-button:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(47, 40, 66, .24); }
.line-button__badge { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; padding: 8px; }
.line-button__badge img { width: 40px; height: 40px; object-fit: contain; }
.line-button__arrow { width: 22px; height: 22px; }
.line-button--header { min-height: 48px; box-shadow: none; font-size: 12px; }
.line-button--header .line-button__badge { width: 40px; height: 40px; padding: 6px; }
.line-button--header .line-button__badge img { width: 28px; height: 28px; }
.line-button--header .line-button__arrow { filter: invert(32%) sepia(86%) saturate(2361%) hue-rotate(228deg) brightness(93%); }

.site-footer { display: grid; grid-template-columns: 1fr; align-items: center; gap: 18px 30px; padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); text-align: center; }
.site-footer .logo--compact { grid-row: auto; margin: 0 auto; }
.site-footer p { margin: 0; font-size: 12px; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 11px; font-weight: 700; }
.site-footer small { grid-column: auto; color: rgba(255, 253, 248, .55); font-size: 9px; text-align: center; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; align-items: end; place-items: center; padding: 12px; background: rgba(47, 40, 66, .62); backdrop-filter: blur(10px); }
.modal-backdrop[hidden] { display: none !important; }
.line-modal { position: relative; width: min(406px, calc(100% - 24px)); padding: 46px 22px 28px; border: 2px solid var(--ink); border-radius: 36px 36px 24px 24px; background: var(--cream); box-shadow: 0 18px 0 rgba(47, 40, 66, .35), 0 40px 100px rgba(24, 20, 38, .35); text-align: center; }
.line-modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; }
.line-modal__close img, .line-modal__close svg { width: 21px; height: 21px; }
.line-modal__icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; padding: 8px; }
.line-modal__icon img { width: 56px; height: 56px; object-fit: contain; }
.line-modal .eyebrow { color: var(--blue-deep); }
.line-modal h2 { margin: 0; font-size: clamp(23px, 6.5vw, 28px); line-height: 1.18; letter-spacing: -.06em; }
.line-modal > p:not(.eyebrow) { color: var(--ink-soft); font-size: 14px; font-weight: 700; line-height: 1.8; }
.line-modal__facts { display: grid; gap: 8px; margin: 24px 0; }
.line-modal__facts span { padding: 11px 14px; border-radius: 16px; background: var(--paper); font-size: 11px; font-weight: 800; }
.modal-confirm { min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 0 6px 0 rgba(47, 40, 66, .2); cursor: pointer; font-weight: 900; }

@media (max-width: 350px) {
  .site-header { width: calc(100% - 18px); }
  .line-button { gap: 5px; padding-right: 11px; font-size: 11px; }
  .line-button__badge { width: 52px; height: 52px; padding: 6px; }
  .line-button__badge img { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
