/* Butter Mango's public pages: the landing page, the privacy policy and
   account deletion. The app's colours and its Fredoka font, nothing else. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
/* Fredoka has no Vietnamese letters. Baloo 2 is as round and friendly,
   and has them, so the Vietnamese pages use it, as the app does. */
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --clay: #2f86e0;
  --clay-dark: #1f6fc4;
  --paper: #fffaf0;
  --ink: #3e2723;
  --ink-soft: #6d5a55;
  --mango: #ffa726;
  --sunflower: #ffd93d;
  --line: #eadfcd;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--clay);
  background-image: radial-gradient(circle at 12% 8%, #4aa0f0 0, transparent 40%),
    radial-gradient(circle at 90% 95%, var(--clay-dark) 0, transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font: 500 17px/1.6 "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="vi"] body { font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif; }

header {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 20px;
  color: #fff;
}
header a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; }
header img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
header span { font-weight: 600; font-size: 26px; }
header .lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}
header .lang a { padding: 6px 10px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55); opacity: .8; }
header .lang a[aria-current="page"] { background: #fff; color: var(--ink); opacity: 1; }
header .lang span { opacity: .6; }

main {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 28px 24px 32px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
}
@media (min-width: 800px) { main { padding: 40px 48px 44px; } }
@media (max-width: 792px) { main { margin: 0 16px 24px; } }

h1 { font-weight: 600; font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-weight: 600; font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
p, li { max-width: 62ch; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
strong { font-weight: 600; }

.updated { color: var(--ink-soft); margin: 0 0 20px; }

.lead {
  font-size: 19px;
  background: #fff3d6;
  border-left: 6px solid var(--mango);
  border-radius: 12px;
  padding: 14px 18px;
}

a { color: var(--clay-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.button {
  display: inline-block;
  margin: 6px 12px 6px 0;
  padding: 14px 24px;
  min-height: 56px;
  background: var(--sunflower);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--mango); color: var(--ink); }


footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: #eaf4ff;
  font-size: 15px;
}
footer a { color: #fff; margin-right: 18px; }

/* The landing page (index.html). Wider than the text pages, so the
   screenshots and the cards have room. */

.home header,
.home main,
.home footer { max-width: 1040px; }

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 28px;
  color: #fff;
}
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 14px; text-shadow: 0 3px 0 rgba(0,0,0,.12); }
.hero p { font-size: 20px; margin: 0 0 18px; color: #eaf4ff; }
.hero-text { flex: 1 1 0; min-width: 0; }

.soon {
  display: inline-block;
  padding: 10px 22px;
  /* Not a button: only a note, so it must not look like the App Store
     button above it. */
  color: #fff !important;
  border: 3px dashed rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-weight: 600;
}

.pair { flex: 0 0 auto; display: flex; align-items: flex-end; }
.pair img { width: 190px; height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.pair .mango { margin-left: -46px; }
.pair .butter { animation: hop 2.6s ease-in-out infinite; }
.pair .mango { animation: hop 2.6s ease-in-out 1.3s infinite; }
@keyframes hop {
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(-16px); }
  90% { transform: translateY(0) scaleY(.96); }
}
@media (prefers-reduced-motion: reduce) { .pair img { animation: none; } }

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto 28px;
  padding: 0 16px;
}
.shots figure { margin: 0; text-align: center; color: #fff; font-weight: 600; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 5px 0 rgba(0,0,0,.15);
}
.shots figcaption { margin-top: 10px; font-size: 18px; }

.home h2.first { margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
}
.card h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin: 8px 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sunflower) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233e2723' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 2px solid var(--ink);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 18px; }
  .pair img { width: 130px; }
  .pair .mango { margin-left: -32px; }
  .cards { grid-template-columns: 1fr; }
  .shots { gap: 12px; }
  .shots figcaption { font-size: 16px; }
}
