/* Halaman "segera hadir" foomu.id. Lapis Pos dari arah Tiga Lapis, palet B "Peach & Petrol".
   Nilai warna disalin dari src/app/globals.css (hex di komentar token), font dari build Next
   (subset latin Fredoka dan Figtree, OFL). Tanpa JavaScript, tanpa sumber dari luar. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metrik pengganti dari next/font, supaya teks tidak loncat waktu font asli selesai diunduh. */
@font-face {
  font-family: "Fredoka Fallback";
  src: local("Arial");
  ascent-override: 95.64%;
  descent-override: 23.17%;
  line-gap-override: 0%;
  size-adjust: 101.84%;
}

@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  ascent-override: 94.32%;
  descent-override: 24.82%;
  line-gap-override: 0%;
  size-adjust: 100.72%;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0e2735;
  --muted-foreground: #4f646e;
  --border: #dfe8ec;
  --primary: #0f4b67;
  --primary-foreground: #ffffff;
  --primary-press: #003550;
  --ring: #0f4b67;
  --peach: #fdd2bf;
  --ink: #0e2735;
  --highlight: #ffd447;
  --pos: #ffede4;
  --pos-border: #e7d9d3;
  --field: #0f4b67;
  --field-foreground: #ffffff;

  --font-display: "Fredoka", "Fredoka Fallback", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", "Figtree Fallback", ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0a1820;
    --foreground: #e8f0f3;
    --muted-foreground: #aebdc7;
    --border: #263843;
    --primary: #fdd2bf;
    --primary-foreground: #0e2735;
    --primary-press: #d49c84;
    --ring: #fdd2bf;
    --pos: #122f3e;
    --pos-border: #243e4d;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.wadah {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kepala */
.kepala {
  display: flex;
  align-items: center;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-decoration: none;
}

/* Hero: Mail Cat di bidang petrol, ajakannya di atas kertas. */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 16px;
}

.bidang {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--field);
}

.bidang img {
  display: block;
  width: 210px;
  height: auto;
  margin-bottom: -12px;
}

/* Bintang kecil, dekorasi dari board Pos (sama seperti hero landing). */
.bintang {
  position: absolute;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.bintang-1 {
  top: 32px;
  left: 18%;
  width: 20px;
  height: 20px;
  background: var(--highlight);
}

.bintang-2 {
  top: 24px;
  right: 22%;
  width: 14px;
  height: 14px;
  background: var(--peach);
}

.bintang-3 {
  top: 38%;
  right: 12%;
  width: 12px;
  height: 12px;
  background: var(--field-foreground);
}

.teks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* Sorotan kuning untuk satu kata. Di mode gelap kata itu cukup berwarna peach. */
.sorot {
  background: linear-gradient(transparent 60%, var(--highlight) 60%);
}

@media (prefers-color-scheme: dark) {
  .sorot {
    background: none;
    color: var(--peach);
  }
}

.pengantar {
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.status {
  max-width: 600px;
  font-weight: 600;
}

/* Kartu kabar (lapis Pos): satu ajakan, lewat email. */
.kabar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin-top: 64px;
  padding: 24px 20px;
  border: 2px solid var(--pos-border);
  border-bottom-width: 4px;
  border-radius: 24px;
  background: var(--pos);
}

.kabar h2 {
  font-size: 1.75rem;
  font-weight: 500;
}

.kabar p {
  max-width: 620px;
  font-size: 1.0625rem;
}

.aksi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

/* Tombol 3D suara Foomu, khusus aksi non-uang (varian "pos" di src/components/ui/button.tsx). */
.tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 0 var(--primary-press);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tombol:hover {
  filter: brightness(1.1);
}

.tombol:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-press);
}

.alamat {
  font-size: 1.0625rem;
  font-weight: 700;
}

/* Kaki */
.kaki {
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.kaki .wadah {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.kaki .logo {
  font-size: 1.625rem;
}

.kaki p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Halaman 404 */
.hilang {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
  padding-top: 48px;
}

.hilang h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .bidang {
    height: 300px;
  }

  .bidang img {
    width: 270px;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .pengantar {
    font-size: 1.25rem;
  }

  .kabar {
    padding: 32px;
  }

  .kabar h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .kepala {
    height: 88px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    padding-top: 48px;
  }

  .bidang {
    order: 2;
    height: 480px;
    border-radius: 40px;
  }

  .bidang img {
    width: 380px;
    margin-bottom: -20px;
  }

  .bintang-1 {
    width: 28px;
    height: 28px;
  }

  .bintang-2 {
    width: 20px;
    height: 20px;
  }

  .bintang-3 {
    width: 16px;
    height: 16px;
  }

  .hero h1 {
    font-size: 4.75rem;
  }

  .kabar {
    margin-top: 96px;
    padding: 40px 44px;
  }

  .kaki {
    margin-top: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tombol {
    transition: none;
  }
}
