@charset "UTF-8";

:root {
  --bg: #fff6ef;
  --ink: #1d1520;
  --mute: #6d5b66;
  --pink: #e84f8a;
  --yellow: #f0b429;
  --cyan: #2bb7c5;
  --panel: #ffffff;
  --deep: #241824;
  --header-h: 72px;
  --nav-shadow: 2px 2px 0 rgba(29, 21, 32, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 79, 138, 0.14), transparent 28%),
    radial-gradient(circle at 10% 30%, rgba(43, 183, 197, 0.12), transparent 30%),
    linear-gradient(180deg, #ffe9dc 0%, var(--bg) 45%, #fff 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.header-inner, .hero-inner, .content-shell {
  width: min(calc(100% - 36px), 1120px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 246, 239, 0.94);
  border-bottom: 1px solid rgba(29, 21, 32, 0.1);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
  column-gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 40px; height: 40px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--nav-shadow);
  flex: 0 0 auto;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-copy strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy span { color: var(--mute); font-size: 12px; }
.primary-nav { justify-self: center; min-width: 0; }
.primary-nav ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}
.primary-nav a { white-space: nowrap; }
.primary-nav a.is-active,
.primary-nav a:hover { color: var(--pink); }
.header-get { justify-self: end; }
.header-get, .mobile-get, .hero-action a, .get-bar a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--nav-shadow);
  white-space: nowrap;
}
.hero-action a, .get-bar a { min-height: 50px; min-width: 160px; font-size: 15px; }
.mobile-actions { display: none; align-items: center; gap: 8px; }
.menu-toggle {
  width: 40px; height: 40px;
  display: grid;
  gap: 4px;
  place-content: center;
  border: 1px solid var(--ink);
}
.menu-toggle i { display: block; width: 16px; height: 2px; background: var(--ink); }

.hero { padding: 48px 0 64px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}
.lead {
  margin: 12px 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}
.hero-intro { margin: 0 0 20px; color: var(--mute); max-width: 520px; }
.hero-action { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.age-label { color: var(--mute); font-size: 12px; }

.story-cabinet {
  position: relative;
  padding: 14px;
  background: var(--deep);
  color: #fff;
  box-shadow: 12px 14px 0 rgba(232, 79, 138, 0.22);
}
.cabinet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}
.cabinet-top span { color: #f3a5c2; font-size: 11px; letter-spacing: 0.12em; }
.archive-drawer {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px 12px 22px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}
.archive-drawer em { font-style: normal; font-size: 12px; font-weight: 600; color: rgba(29, 21, 32, 0.7); }
.drawer-tab {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.drawer-pink { background: #ffb3cf; }
.drawer-yellow { background: #ffe08a; }
.drawer-cyan { background: #9fe7ef; }
.cabinet-phone {
  position: absolute;
  right: 18px;
  bottom: 18px;
  margin: 0;
  width: 112px;
  z-index: 2;
}
.cabinet-phone img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.section-heading { margin-bottom: 22px; }
.section-heading p {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.section-heading h2 { margin: 0 0 8px; font-size: 30px; }
.section-heading span { color: var(--mute); }
.section-heading.light p { color: #f3a5c2; }
.section-heading.light span { color: #c9b4bf; }

.archive-section { padding: 68px 0; }
.archive-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 16px;
}
.archive-main, .today-index {
  background: var(--panel);
  border: 1px solid rgba(29, 21, 32, 0.1);
}
.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(29, 21, 32, 0.08);
}
.archive-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(29, 21, 32, 0.14);
  font-weight: 800;
  font-size: 13px;
  background: #fff8f3;
}
.archive-tabs button.is-active,
.archive-tabs button:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.archive-table { padding: 8px 14px 14px; }
.archive-row {
  display: grid;
  grid-template-columns: 52px 1.1fr 1.4fr 64px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(29, 21, 32, 0.12);
  font-size: 14px;
}
.archive-row.is-hidden { display: none; }
.archive-head { font-weight: 800; color: var(--mute); font-size: 12px; }
.archive-row b { color: var(--pink); }
.archive-row em { font-style: normal; font-weight: 800; color: var(--cyan); }
.today-index { padding: 18px 16px; background: linear-gradient(160deg, #fff, #ffe8f1); }
.today-index h3 { margin: 0 0 10px; }
.today-index p { margin: 0 0 12px; color: var(--mute); }
.today-index li {
  padding: 8px 0;
  border-top: 1px solid rgba(29, 21, 32, 0.1);
  font-weight: 700;
}

.ledger-section {
  padding: 68px 0;
  background: var(--deep);
  color: #fff8f3;
}
.ledger-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px;
}
.ledger-book { display: grid; gap: 10px; }
.ledger-page {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #f3a5c2;
}
.ledger-page.on {
  background: rgba(232, 79, 138, 0.22);
  border-left-color: var(--yellow);
}
.ledger-page span { display: block; color: #f3a5c2; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.ledger-page strong { display: block; font-size: 18px; margin-bottom: 4px; }
.ledger-page p { margin: 0; color: #d7c4cd; }
.memo-title { margin: 0 0 10px; font-weight: 800; }
.memo-stack { display: grid; gap: 10px; }
.memo {
  min-height: 84px;
  padding: 14px;
  text-align: left;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.memo span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; }
.memo:hover { transform: translateY(-2px); }
.memo[aria-pressed="true"] { outline: 2px solid #fff; }
.memo-pink { background: #ffb3cf; color: var(--ink); }
.memo-yellow { background: #ffe08a; color: var(--ink); }
.memo-cyan { background: #9fe7ef; color: var(--ink); }

.screens-section { padding: 68px 0; background: #fff; }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.screenshot-grid figure { margin: 0; }
.screenshot-media {
  display: block;
  padding: 12px;
  background: #fff6ef;
  border: 1px solid rgba(29, 21, 32, 0.1);
}
.screenshot-media img {
  width: 100%;
  max-width: 188px;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}
.screenshot-grid figcaption {
  margin-top: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

.faq-section {
  padding: 68px 0;
  background: #3a2030;
  color: #fff6ef;
}
.faq-list { display: grid; gap: 8px; }
.faq-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  text-align: left;
  font-weight: 800;
  background: #4a2a3d;
}
.faq-button:hover { color: #ffb3cf; }
.faq-item > div {
  padding: 0 16px 16px;
  color: #e7d0da;
  background: #4a2a3d;
}

.voice-section { padding: 68px 0; }
.voice-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.voice-board article {
  padding: 18px 16px;
  background: #fff;
  border-top: 5px solid var(--yellow);
  box-shadow: 0 1px 0 rgba(29, 21, 32, 0.08);
}
.voice-board article:nth-child(2n) { border-top-color: var(--cyan); }
.voice-board article:nth-child(3n) { border-top-color: var(--pink); }
.voice-board time {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}
.voice-board p { margin: 0 0 12px; }
.voice-board span { font-size: 13px; font-weight: 800; color: var(--mute); }

.get-section { padding: 28px 0 64px; }
.get-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(120deg, #ffd0e2, #ffe9a8 55%, #b9f1f6);
  border: 2px solid var(--ink);
}
.get-bar h2 { margin: 0 0 6px; }
.get-bar p { margin: 0; color: var(--mute); }
.get-bar a { background: var(--deep); }

.site-footer {
  padding: 32px 0 18px;
  background: #140f14;
  color: #f0e2e8;
}
.footer-row {
  height: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 800;
}
.footer-nav a:hover { color: #ffb3cf; }
.copyright {
  width: min(calc(100% - 36px), 1120px);
  margin: 14px auto 0;
  color: #9a8791;
  font-size: 12px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: var(--pink);
  transition: opacity 0.2s ease;
}
.back-top::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: translateY(3px) rotate(45deg);
}
.back-top.is-visible { visibility: visible; opacity: 1; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-get { display: none; }
  .mobile-actions { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0; left: 0;
    display: none;
    background: #fff8f3;
    border-bottom: 1px solid rgba(29, 21, 32, 0.1);
    justify-self: stretch;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 16px;
  }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(29, 21, 32, 0.08);
  }
  .hero-inner { display: flex; flex-direction: column; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-intro { margin-inline: auto; }
  .hero-action { justify-content: center; }
  .story-cabinet { padding-bottom: 160px; }
  .cabinet-phone { left: 50%; right: auto; transform: translateX(-50%); }
  .archive-board, .ledger-layout, .screenshot-grid, .voice-board, .get-bar, .footer-row, .archive-row {
    grid-template-columns: 1fr;
  }
  .archive-row { gap: 4px; }
  .hero-action a, .get-bar a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .memo { transition: none; }
}
