/* Meloo website. One type scale, one button, one card, matching the app (mobile/src/theme/type.ts). */
@font-face { font-family: 'Lexend'; font-weight: 300; font-display: swap; src: url('/assets/meloo/fonts/Lexend-Light.ttf') format('truetype'); }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url('/assets/meloo/fonts/Lexend-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Lexend'; font-weight: 500; font-display: swap; src: url('/assets/meloo/fonts/Lexend-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url('/assets/meloo/fonts/Lexend-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/assets/meloo/fonts/Fredoka-SemiBold.ttf') format('truetype'); }

:root {
  --ink: #161616; --text: #5c5c5c; --sub: #8e8e8e; --line: #efefef; --soft: #f6f5f3; --page: #ffffff;
  --mint: #c8f1dd; --blush: #ffd9d6; --lilac: #e6ddff; --coral: #ff6f61;
  --btn-bg: #161616; --btn-fg: #ffffff;
  --disp: 'Lexend', system-ui, -apple-system, 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Noto Sans', sans-serif;
  --body: var(--disp);
  --lift: 0 8px 18px rgba(20, 20, 20, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid #6e9b5e; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(clamp(18px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(18px, 4vw, 48px), env(safe-area-inset-right, 0px)); }

/* Type scale */
.h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(44px, 8.4vw, 104px); letter-spacing: -.045em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--disp); font-weight: 600; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--disp); font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text); margin: 0; max-width: 36ch; }
.p { margin: 0; color: var(--text); font-size: 15.5px; }
.sub { margin: 0; color: var(--sub); font-size: 14px; }
:lang(ja) .h1, :lang(ko) .h1, :lang(zh) .h1, :lang(hi) .h1, :lang(ar) .h1 { letter-spacing: -.02em; line-height: 1.15; font-size: clamp(38px, 7vw, 88px); }

/* Button + card */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--disp); font-weight: 500; font-size: 16px; line-height: 1; padding: 15px 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); border: 0; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.card { background: #fff; box-shadow: var(--lift); border-radius: 22px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.links { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); font-size: 14.5px; font-weight: 400; }
.links a { color: var(--ink); text-decoration: none; }
.links a.btn { color: var(--btn-fg); }

/* Hero */
.hero { padding-block: clamp(26px, 5vw, 64px) 0; display: grid; gap: clamp(26px, 4vw, 40px); }
.h1 .chip { display: inline-flex; vertical-align: middle; width: 1.05em; height: .82em; border-radius: .4em; justify-content: center; overflow: hidden; margin-inline: .06em; transform: translateY(-.06em); }
.h1 .chip img { width: 86%; max-width: none; }
.h1 .chip.tutor { align-items: flex-end; background: var(--blush); }
.h1 .chip.pet { align-items: flex-start; background: var(--mint); }
.h1 .chip.pet img { margin-top: -.3em; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 5vw, 70px); align-items: start; }
.hero-row .copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.cta { display: grid; gap: 10px; justify-items: start; }
.figure { width: clamp(200px, 30vw, 340px); position: relative; }
.bubble { position: absolute; top: 6%; inset-inline-start: -14%; background: #fff; border: 1px solid #eee; box-shadow: var(--lift); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: 14px; font-weight: 400; max-width: 230px; }
.bubble b { display: block; font-size: 17px; font-weight: 500; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #161616; color: #fff; border-radius: 14px; padding: 10px 20px 10px 14px; text-decoration: none; }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: 10.5px; opacity: .8; line-height: 1.1; font-weight: 400; }
.store b { display: block; font-size: 18px; font-weight: 500; line-height: 1.15; }
@media (max-width: 720px) {
  .hero-row { grid-template-columns: 1fr; }
  .figure { justify-self: center; }
  .links .hide-sm { display: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 90px); font-size: 14px; color: var(--sub); }
.site-footer .wrap { display: grid; gap: 18px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.foot-main nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-main a { color: var(--ink); text-decoration: none; font-weight: 400; }
.foot-main a:hover { text-decoration: underline; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.language-picker { position: relative; }
.language-picker summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 400; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker ul { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; z-index: 5; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(20, 20, 20, .14); display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px; }
.language-picker ul a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.language-picker ul a:hover, .language-picker ul a[aria-current] { background: var(--soft); }

/* In-app pages */
.doc { max-width: 720px; margin: 0 auto; padding-block: clamp(28px, 5vw, 60px) 0; display: grid; gap: 28px; }
.doc-head { display: grid; gap: 12px; }
.doc-head .lead { max-width: 52ch; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-tabs a { font-size: 13.5px; font-weight: 400; padding: 7px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; }
.legal-tabs a[aria-current] { background: var(--ink); color: #fff; }

/* Support: sticker-sheet style (Fredoka headings, coral button) */
.support-page .h2, .support-page .h3 { font-family: 'Fredoka', var(--disp); font-weight: 600; letter-spacing: -.01em; }
.support-page .btn { background: var(--coral); font-family: 'Fredoka', var(--disp); font-weight: 600; }
.contact { padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.contact img { width: 64px; height: 64px; object-fit: contain; border-radius: 18px; }
.contact .t { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.faq .q { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.faq .q:last-child { border-bottom: 1px solid var(--line); }
.faq a, .document a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 620px) { .contact { grid-template-columns: auto 1fr; } .contact .btn { grid-column: 1 / -1; } }

/* Privacy, Terms, Delete account: one-screen style */
.document { display: grid; gap: 14px; color: var(--text); font-size: 15.5px; }
.document h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); margin: 0 0 4px; text-wrap: balance; }
.document h1 + p:not(.intro):not(.summary), .document .updated { justify-self: start; margin: 0; font-size: 13px; font-weight: 400; color: var(--text); background: var(--soft); border-radius: 999px; padding: 5px 12px; }
.document .intro, .document .summary { margin: 8px 0 6px; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: var(--lift); color: var(--text); }
.document h2 { font-family: var(--disp); font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: var(--ink); margin: 18px 0 0; }
.document p { margin: 0; }
.document ul, .document ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.document strong { color: var(--ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
