@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;900&family=Poppins:wght@100;400;700;900&display=swap');

:root {
  --text: #29043f;
  /* rgb(41, 4, 63)     */
  --card: #a1e8ff;
  /* rgb(161, 232, 255) */
  --logo: #ec407a;
  /* Colors.pink.shade500 */
  --primary: #009688;
  /* Colors.teal        */
  --divider: #eeeeee;
  /* Colors.grey.shade200 */
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
}

/* ---------- App bar ---------- */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  box-shadow: 0 2px 4px rgba(68, 138, 255, 0.15);
}

.app-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  /* Mirrors the `Underlined` widget under the app-bar title. */
  border-bottom: 1px solid var(--divider);
}

/* The logo.png tinted pink, mirroring Flutter's ImageIcon(color: logo). */
.logo {
  width: 28px;
  height: 28px;
  flex: none;
  display: inline-block;
  background-color: var(--logo);
  -webkit-mask: url('/images/logo.png') center / contain no-repeat;
  mask: url('/images/logo.png') center / contain no-repeat;
}

.app-title,
.app-title a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--text);
  line-height: 1.1;
}

.app-title a {
  text-decoration: none;
}

.app-title a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.app-column {
  max-width: 100%;
}

.app-image {
  max-width: 100%;
}

.app-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.app-image.circle img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Markdown content ---------- */

.markdown h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.6;
  margin: 0.4em 0 0.3em;
}

.markdown h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  margin: 1.4em 0 0.3em;
}

.markdown h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin: 0.9em 0 0.2em;
}

.markdown p {
  font-size: 18px;
  margin: 0.5em 0;
}

.markdown a {
  color: var(--primary);
}

.markdown ul,
.markdown ol {
  padding-left: 1.4em;
  margin: 0.4em 0;
}

.markdown li {
  margin: 0.25em 0;
}

.markdown img {
  max-width: 100%;
  height: auto;
}

/* ---------- Pay ---------- */

.pay {
  width: 100%;
  text-align: left;
  padding: 16px;
}

.pay h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  margin: 0.4em 0 0.4em;
}

.pay .spacer {
  height: 16px;
}

.pay-channel {
  margin: 16px 0;
}

.pay-title {
  font-weight: 700;
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 6px 24px;
}

.pay-desc {
  color: #6b5b76;
  margin: 2px 0 2px 24px;
}

.pay-qr img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin: 6px 0 6px 24px;
}

.copy-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 30px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: var(--card);
}

.copy-btn.copied {
  color: #2e7d32;
}

/* ---------- Contacts ---------- */

.contacts h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  margin: 1.4em 0 0.3em;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

/* ---------- Home link (molokai -> home) ---------- */

.home-link {
  margin-top: 8px;
}

.home-link a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  height: 600px;
  margin-top: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  background: linear-gradient(to bottom, var(--bg), var(--card));
}