/* Snack Planet website: same colours, fonts and shapes as the app (src/theme/index.ts). */
:root {
  --blue: #2446f4;
  --blue-deep: #1429a6;
  --lime: #d4ff3a;
  --white: #ffffff;
  --mist: #d7dfff;
  --ink: #07080a;
  --pill: rgba(7, 8, 10, 0.72);
  --ghost: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.16);
  --faint: rgba(255, 255, 255, 0.45);
  --success: #2fbf71;
  --orange: #ff9f1c;
  --paper: #f6f0dc;
  --paper-ink: #233f78;
  --display: 'Fredoka', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--lime); }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header / footer ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  color: var(--lime);
  text-decoration: none;
}
.nav { display: flex; gap: 8px; }
.nav a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  background: var(--pill);
}
.nav a[aria-current='page'] { color: var(--lime); }

.foot {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mist);
}
.foot a { color: var(--mist); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.2; }
.lead { color: var(--mist); font-size: 18px; max-width: 34em; margin: 18px 0 0; }

/* ---------- buttons / pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.button.primary { background: var(--lime); color: var(--ink); }
.button.ghost { background: var(--ghost); color: var(--white); border: 1px solid var(--hairline); }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--hairline);
}
.soon small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lime);
}
.soon strong { display: block; font-size: 17px; line-height: 1.1; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 24px;
}
.hero-art { position: relative; justify-self: center; width: min(100%, 360px); }

/* The passport cover, as in the app (passport-book.tsx PassportCover). */
.cover {
  position: relative;
  aspect-ratio: 330 / 442;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a357d 0%, #0d1a6b 55%, #081042 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 6px 5px 0 #e6ddc2, 3px 2px 0 #efe7cf;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-left: 14px;
  color: var(--lime);
  font-family: var(--mono);
  transform: rotate(-4deg);
  animation: float 4.8s ease-in-out infinite;
}
.cover::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5%;
  background: #0a1452;
  border-right: 1px dashed rgba(212, 255, 58, 0.25);
}
.cover::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 26%;
  left: -40%;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(18deg);
  animation: shine 5s ease-in-out 1.2s infinite;
}
.cover .country { font-weight: 700; font-size: clamp(13px, 4vw, 16px); letter-spacing: 5px; }
.cover .sub { font-size: clamp(5px, 1.55vw, 7.5px); letter-spacing: 1px; opacity: 0.7; white-space: nowrap; }
.cover .title { font-size: clamp(22px, 7vw, 28px); letter-spacing: 7px; margin-top: 4px; }
.cover .emblem { width: 44%; margin: 14px 0; }
.cover .chip { width: 13%; margin-top: 14px; }

.hero-art .stamp { position: absolute; }
.hero-art .stamp.a { top: 6%; right: -12%; transform: rotate(9deg); }
.hero-art .stamp.b { bottom: 8%; left: -14%; transform: rotate(-8deg); }

/* A country entry stamp (components/passport.tsx Stamp). */
.stamp {
  --ink: #233f78;
  width: 148px;
  padding: 11px 10px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(246, 240, 220, 0.96);
  color: var(--ink);
  font-family: var(--mono);
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.stamp .caps { font-size: 7.5px; letter-spacing: 1px; }
.stamp .name { font-weight: 700; font-size: 19px; letter-spacing: 0.5px; margin: 3px 0; }
.stamp .flag { font-size: 20px; line-height: 1.2; }
.stamp .date { font-size: 9px; margin: 2px 0; }
.stamp.red { --ink: #b4443a; }
.stamp.green { --ink: #4f7a5e; }

/* ---------- how it works ---------- */
.section { margin-top: 88px; }
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--blue-deep);
  border: 1px solid var(--faint);
  border-radius: 22px;
  padding: 22px;
}
.steps .card { display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1.2px; color: var(--lime); }
.steps .art { font-size: 34px; line-height: 1; }
.steps p { margin: 0; color: var(--mist); font-size: 15px; }

/* Dish checklist (the app's country page). */
.dishes { list-style: none; padding: 0; margin: 4px 0 0; }
.dishes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 14px;
}
.box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--orange);
  display: grid;
  place-items: center;
}
.box.done { background: var(--success); }
.box.done::after {
  content: '';
  width: 9px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

/* ---------- privacy ---------- */
.doc-head { padding: 36px 0 28px; }
.paper {
  background: var(--paper);
  color: #1d2b4f;
  border-radius: 22px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.paper h2 { color: var(--paper-ink); font-size: 26px; margin: 38px 0 12px; }
.paper h2:first-child { margin-top: 0; }
.paper h3 { color: var(--paper-ink); font-size: 19px; margin: 24px 0 8px; }
.paper p, .paper li { font-size: 16px; line-height: 1.65; }
.paper a { color: var(--blue); font-weight: 600; }
.paper ul { padding-left: 22px; }
.paper .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--paper-ink); opacity: 0.75; margin: 0; }
.paper table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.paper th, .paper td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(35, 63, 120, 0.15); }
.paper th { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--paper-ink); }
.table-scroll { overflow-x: auto; }

/* The account-deletion section stands out like a stamp. */
.delete {
  margin-top: 40px;
  border: 2px solid #b4443a;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(180, 68, 58, 0.06);
  scroll-margin-top: 24px;
}
.delete h2 { color: #b4443a; margin-top: 0; }
.delete ol { padding-left: 22px; }
.steps-path {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  background: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(35, 63, 120, 0.2);
}

/* ---------- motion ---------- */
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes shine {
  0% { left: -40%; }
  30%, 100% { left: 130%; }
}
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.d1 { animation-delay: 0.1s; }
.rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cover, .cover::after, .rise { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 16px; }
  .hero-art { width: min(72%, 300px); margin-bottom: 20px; }
  .hero-art .stamp { width: 118px; padding: 8px; }
  .hero-art .stamp .name { font-size: 15px; }
  .hero-art .stamp.a { right: -22%; }
  .hero-art .stamp.b { left: -22%; }
  .nav a { padding: 8px 11px; font-size: 10px; }
  .brand { font-size: 23px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .actions .button, .actions .soon { width: 100%; }
}
