/* Mochi Slow Café — public site theme (cozy Japanese café).
   Static, self-contained, responsive, light/dark aware. */
:root {
  --ivory: #f8f2e4;
  --ivory-2: #f1e9d6;
  --card: #fffdf6;
  --matcha: #8ba05e;
  --matcha-dark: #6f8a49;
  --hojicha: #7a5c40;
  --sesame: #4a4038;
  --sakura: #eec7bf;
  --gold: #d8b567;
  --muted: #9c8f7f;
  --line: rgba(74, 64, 56, 0.12);
  --shadow: 0 6px 18px rgba(111, 82, 58, 0.13);
  --radius: 18px;
  --maxw: 820px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--sesame);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Hiragino Mincho ProN", Georgia,
    "Times New Roman", serif;
  line-height: 1.25;
  color: var(--sesame);
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 0.3em;
}
h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.5em;
}
h3 {
  font-size: 1.1rem;
  margin: 1.4em 0 0.3em;
}
a {
  color: var(--matcha-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
p,
li {
  color: #43392f;
}
small {
  color: var(--muted);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 239, 225, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff url("/apps/mochi-slow-cafe/assets/icon.png") center / cover
    no-repeat;
  display: grid;
  place-items: center;
  font-size: 0;
  color: transparent;
  box-shadow: var(--shadow);
}
.nav .spacer {
  flex: 1;
}
.nav a.navlink {
  color: var(--hojicha);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a.navlink:hover {
  color: var(--matcha-dark);
  text-decoration: none;
}

/* Layout */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.wide {
  max-width: 1000px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--matcha-dark);
  background: rgba(110, 140, 90, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
}
.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--matcha);
  color: #fff !important;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.btn:hover {
  background: var(--matcha-dark);
  text-decoration: none;
}
.btn.secondary {
  background: #fff;
  color: var(--hojicha) !important;
  border: 1.5px solid var(--line);
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 8px;
}
.hero .appicon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin: 0 auto 18px;
  background: linear-gradient(160deg, #d7e6c8, var(--matcha));
  display: grid;
  place-items: center;
  font-size: 58px;
  box-shadow: var(--shadow);
}
.hero p.lede {
  font-size: 1.2rem;
  color: #43392f;
  max-width: 560px;
  margin: 0.4em auto 1.4em;
}
.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sesame);
  color: #fff !important;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.store-badge small {
  color: #cfc7bd;
  display: block;
  font-size: 0.68rem;
  line-height: 1;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.feature .ic {
  font-size: 26px;
}
.feature h3 {
  margin: 8px 0 4px;
}
.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: #52463a;
}

/* Screenshot placeholders */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 10px;
}
.shot {
  flex: 0 0 auto;
  width: 150px;
  height: 320px;
  border-radius: 22px;
  background: linear-gradient(180deg, #e9f0df, var(--ivory-2));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}

/* TOC + legal doc */
.toc {
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0 28px;
}
.toc ol {
  margin: 6px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.toc a {
  font-size: 0.92rem;
}
.legal h2 {
  scroll-margin-top: 80px;
}
.legal h2 .num {
  color: var(--matcha);
  font-family: ui-rounded, system-ui;
  font-weight: 800;
  margin-right: 8px;
}

/* FAQ */
.search {
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 1rem;
  background: #fff;
  margin: 4px 0 20px;
  font-family: inherit;
}
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::before {
  content: "＋";
  color: var(--matcha);
  font-weight: 800;
  margin-right: 10px;
}
details.faq[open] summary::before {
  content: "－";
}
details.faq p {
  margin: 0 0 14px;
}
.noresults {
  color: var(--muted);
  padding: 10px 2px;
}

/* Forms */
label {
  display: block;
  font-weight: 700;
  margin: 14px 0 5px;
  font-size: 0.95rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--sesame);
}
textarea {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ivory-2);
}
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.foot a {
  color: var(--hojicha);
  font-weight: 600;
  font-size: 0.92rem;
}
.foot .spacer {
  flex: 1;
}
.foot small {
  color: var(--muted);
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
  .nav {
    gap: 10px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #221f1b;
    --ivory-2: #2a2621;
    --card: #2c2823;
    --sesame: #f3ece0;
    --hojicha: #d8b48f;
    --muted: #a99a86;
    --line: rgba(216, 180, 143, 0.22);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  h1,
  h2,
  h3 {
    color: var(--sesame);
  }
  p,
  li {
    color: #ded3c4;
  }
  .feature p,
  .hero p.lede {
    color: #cabdac;
  }
  .site-header {
    background: rgba(34, 31, 27, 0.9);
  }
  .store-badge {
    background: #0f0d0b;
  }
}

/* Print (privacy/terms) */
@media print {
  .site-header,
  .site-footer,
  .no-print,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
  }
  main {
    max-width: 100%;
  }
  .card {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}
