/* My So Cute Baby — shared styles for the developer site (privacy, support, app page). */
:root {
  --bg: #ffffff;
  --surface: #f7f5f6;
  --fg: #1c1a1b;
  --muted: #5e5a5c;
  --line: #e6e1e3;
  --accent: #c8445f;
  --accent-soft: #fbe9ed;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151314;
    --surface: #211e20;
    --fg: #efeced;
    --muted: #a9a3a6;
    --line: #353033;
    --accent: #ff8ea5;
    --accent-soft: #3a2228;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151314;
  --surface: #211e20;
  --fg: #efeced;
  --muted: #a9a3a6;
  --line: #353033;
  --accent: #ff8ea5;
  --accent-soft: #3a2228;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Noto Sans JP",
    "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
:lang(ja) body,
body:lang(ja) {
  line-height: 1.85;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.langs {
  display: flex;
  gap: 4px;
  font-size: 0.875rem;
}
.langs a,
.langs span {
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}
.langs [aria-current="page"] {
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
}
.langs a:hover {
  color: var(--fg);
}

main {
  padding: 32px 0 64px;
}
h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}
p,
li {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 1.25rem;
  margin: 0 0 16px;
}
li {
  margin-bottom: 6px;
}
a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
strong {
  font-weight: 600;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.small {
  font-size: 0.875rem;
  color: var(--muted);
}

.lede {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.lede p:last-child,
.lede ul:last-child {
  margin-bottom: 0;
}

nav.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 8px;
  font-size: 0.925rem;
}
nav.toc ol {
  margin: 0;
  columns: 2 16rem;
  column-gap: 24px;
}
nav.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 38rem;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
thead th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.825rem;
  white-space: nowrap;
}
tbody th {
  font-weight: 600;
  background: var(--accent-soft);
  font-size: 0.85rem;
}
td:first-child {
  font-weight: 500;
}

/* Support FAQ */
details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 10px;
  background: var(--bg);
}
details.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
details.faq[open] summary::after {
  content: "−";
}
details.faq .answer {
  padding: 0 16px 6px;
}

.contact {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 28px;
}
.contact p:last-child {
  margin-bottom: 0;
}

/* App page */
.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 8px 0 28px;
  flex-wrap: wrap;
}
.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.hero h1 {
  margin-bottom: 4px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.875rem;
}
footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}
footer.site a {
  color: var(--muted);
}
