/* pooki.site landing page. The logo's colours, as on the app's login screen: brand yellow, ink letters, white cards. */
@font-face {
  font-family: "Pooki Rounded";
  src: url("assets/pooki-rounded.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  --bg: #ffd45e;
  --fg: #1c1c1e;
  --white: #ffffff;
  --note: rgba(28, 28, 30, 0.62);
  --line: rgba(28, 28, 30, 0.22);
  --display: "Pooki Rounded", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans TC", "Noto Sans JP",
    "Noto Sans KR", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans TC",
    "Noto Sans JP", "Noto Sans KR", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; }
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  min-height: 680px;
  padding: 32px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 104px; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  background: none;
  border: 0;
  color: var(--note);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.lang button:focus-visible, .badge:focus-visible, footer a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

h1 {
  margin-bottom: 48px;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8.4vw, 8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 span { white-space: nowrap; }
/* Japanese and Korean lines are longer: keep them clear of pooki on the right. */
:lang(ja) h1 { font-size: clamp(3.4rem, 6.2vw, 6rem); }
:lang(ko) h1 { font-size: clamp(3.2rem, 5.6vw, 5.4rem); font-weight: 900; letter-spacing: -0.02em; }

.get { display: flex; align-items: flex-start; gap: 24px; }
.get h2 { font-family: var(--display); font-size: 20px; font-weight: 800; }
.get h2 i { font-style: normal; border-bottom: 2px solid var(--fg); }
.get p { font-size: 14px; color: rgba(28, 28, 30, 0.78); line-height: 1.5; margin-top: 4px; }
.badges { display: flex; gap: 12px; margin-top: 16px; }
.badge {
  height: 46px;
  min-width: 148px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--fg);
  border: 1px solid var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.badge.ghost { background: var(--fg); color: var(--white); border-color: var(--fg); }
a.badge:hover { background: var(--fg); color: var(--white); border-color: var(--fg); }
a.badge.ghost:hover { background: var(--white); color: var(--fg); border-color: var(--white); }
.badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.badge small { display: block; font-size: 10px; line-height: 1.1; opacity: 0.7; }
.badge strong { display: block; font-size: 15px; line-height: 1.2; font-weight: 800; }

/* pooki lying on a chat, paws over its top edge, with the login screen's doodles around it. */
.art { position: absolute; right: 88px; bottom: 72px; width: min(36vw, 440px); }
.pooki { position: relative; width: 78%; margin: 0 auto -4.2%; z-index: 1; }
.pooki .cat { width: 100%; }
.doodle { position: absolute; transform: translate(-50%, -50%); }
.doodle.sparkle { left: -6%; top: 6.5%; width: 11%; }
.doodle.heart { left: 35%; top: -24%; width: 12%; transform: translate(-50%, -50%) rotate(8deg); }
.doodle.fish { left: 89%; top: -13%; width: 19%; transform: translate(-50%, -50%) rotate(6deg); }
.doodle.star { left: -19%; top: 53.5%; width: 15%; }
.doodle.bubble { left: 118%; top: 42%; width: 17%; }
.chat {
  background: var(--white);
  border-radius: 28px;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(120, 84, 0, 0.18);
}
.msg { max-width: 82%; padding: 9px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.msg.them { align-self: flex-start; background: #f2f1ee; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--fg); color: var(--white); border-bottom-right-radius: 6px; }

footer {
  text-align: center;
  font-size: 14px;
  color: rgba(28, 28, 30, 0.78);
  padding: 96px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo { width: 150px; margin-bottom: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; padding: 20px 20px 8px; gap: 44px; justify-content: flex-start; }
  .logo img { width: 84px; }
  .lang button { font-size: 12px; padding: 5px 10px; }
  .art { position: static; width: min(80vw, 380px); margin: 40px auto 0; }
  h1, :lang(ja) h1, :lang(ko) h1 { font-size: clamp(40px, 12.5vw, 76px); margin-bottom: 28px; }
  :lang(ja) h1 { font-size: clamp(34px, 10.5vw, 68px); }
  :lang(ko) h1 { font-size: clamp(32px, 10vw, 64px); }
  .get { flex-direction: column; gap: 20px; }
  .badges { flex-wrap: wrap; }
  footer { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge { transition: none; }
}

/* Support shares the landing page's palette, artwork and language switch. */
.support-page .hero-inner { min-height: 740px; }
.support-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; margin: 80px 0 20px; }
.support-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; margin-bottom: 22px; }
.support-page h1 { font-size: clamp(48px, 6vw, 84px); white-space: pre-line; margin-bottom: 24px; }
.support-page:lang(ja) h1, .support-page:lang(ko) h1 { font-size: clamp(34px, 4.6vw, 64px); }
.support-description { max-width: 440px; font-size: 17px; line-height: 1.8; }
.support-home { display: inline-block; margin-top: 28px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.support-contact { width: 100%; max-width: 440px; justify-self: center; }
.support-contact .pooki { width: 65%; }
.support-card { position: relative; background: var(--white); border-radius: 28px; padding: 36px; box-shadow: 0 18px 40px rgba(120, 84, 0, .18); }
.support-card h2 { font-family: var(--display); font-size: 24px; margin-bottom: 12px; }
.support-email { display: inline-block; font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.support-card p { margin-top: 20px; color: var(--note); line-height: 1.7; font-size: 14px; }
.support-send { width: 100%; justify-content: center; height: 52px; margin-top: 28px; }
.support-card .support-hint { font-size: 12px; margin-top: 14px; }
.support-page a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.support-page footer { padding-top: 40px; }
@media (max-width: 1023px) {
  .support-page .hero-inner { min-height: 0; }
  .support-layout { grid-template-columns: 1fr; gap: 76px; margin: 0 0 36px; }
  .support-page h1 { font-size: clamp(42px, 10vw, 72px); }
  .support-page:lang(ja) h1, .support-page:lang(ko) h1 { font-size: clamp(30px, 7.6vw, 58px); }
  .support-card { padding: 28px 24px; }
}
