/* Kopi Awal Kisah — coming soon page styles (shared by / and /id/) */

:root {
  --navy: #054769;
  --navy-ink: #00385b;
  --navy-deep: #022b42;
  --cream: #f6efe3;
  --paper: #fbf7f0;
  --latte: #e8dcc8;
  --copper: #b5793f;
  --copper-soft: #d8a46d;
  --wa: #25d366;
  --text: #1d2a33;
  --muted: #5b6a74;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.15  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 48px 0 72px;
  isolation: isolate;
  overflow: hidden;
}
.hero::after { /* warm glow behind the phoenix */
  content: "";
  position: absolute; z-index: -1;
  width: 720px; height: 720px;
  right: -160px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(216,164,109,.32), rgba(216,164,109,0));
  filter: blur(8px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--navy-ink);
  margin: 0 0 24px;
}
h1 em { font-style: italic; color: var(--copper); }

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.lead strong { color: var(--navy-ink); font-weight: 600; }

/* Roasting status — the "coming soon" meter */
.roast {
  max-width: 440px;
  margin: 0 0 36px;
  padding: 16px 18px 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--latte);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.roast-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; margin-bottom: 10px;
}
.roast-head span:first-child { font-weight: 600; color: var(--navy-ink); }
.roast-head .dots::after { content: ""; animation: dots 1.6s steps(4) infinite; }
.roast-head output { color: var(--copper); font-weight: 600; font-variant-numeric: tabular-nums; }
.roast-bar {
  height: 8px; border-radius: 99px;
  background: var(--latte);
  overflow: hidden;
}
.roast-bar i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a66b, #a0652e 55%, #5a3417);
  transition: width 2.4s var(--ease);
}
.roast-scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  margin-top: 6px; letter-spacing: .04em;
}
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px 16px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(5,71,105,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-wa:hover { transform: translateY(-2px); background: var(--navy-ink); box-shadow: 0 16px 34px -12px rgba(5,71,105,.7); }
.btn-wa:focus-visible { outline: 3px solid var(--copper-soft); outline-offset: 3px; }
.btn-wa .ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa);
}
.btn-wa svg { width: 18px; height: 18px; fill: #fff; }
.cta-note { font-size: 14px; color: var(--muted); }
.cta-note a { color: var(--navy); font-weight: 500; text-decoration-color: var(--copper-soft); text-underline-offset: 3px; }

/* Logo + steam */
.brand {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
}
.brand img {
  width: 100%; height: auto;
  animation: rise 1.4s var(--ease) both;
}
.steam {
  position: absolute;
  left: 50%; top: -6%;
  width: 120px; height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}
.steam span {
  position: absolute; bottom: 0;
  width: 14px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(181,121,63,.0), rgba(181,121,63,.28), rgba(181,121,63,0));
  filter: blur(6px);
  animation: steam 4.5s ease-in-out infinite;
  opacity: 0;
}
.steam span:nth-child(1) { left: 30px; animation-delay: 0s; }
.steam span:nth-child(2) { left: 54px; animation-delay: 1.4s; }
.steam span:nth-child(3) { left: 78px; animation-delay: 2.8s; }
@keyframes steam {
  0%   { transform: translateY(20px) scaleX(1); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-60px) scaleX(2.2) skewX(10deg); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; } .d5 { animation-delay: .7s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 28px;
  background: linear-gradient(var(--copper), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------- Origins marquee ---------- */
.origins-clip { overflow: hidden; padding: 24px 0; margin: -24px 0; position: relative; z-index: 1; }
.origins {
  position: relative; z-index: 1;
  background: var(--navy);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  box-shadow: 0 20px 40px -24px rgba(2,43,66,.6);
}
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  padding: 0 22px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 44px;
}
.marquee li::after { content: "✦"; font-style: normal; font-size: 12px; color: var(--copper-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story { padding: 120px 0 96px; position: relative; z-index: 1; }
.story-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.story-head .eyebrow { justify-content: center; }
.story-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--navy-ink);
  margin: 0 0 18px;
}
h2 em { color: var(--copper); }
.story-head p { color: var(--muted); margin: 0; font-size: 17px; }

.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: bab;
}
.chapter {
  counter-increment: bab;
  position: relative;
  background: #fff;
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.chapter:hover {
  transform: translateY(-6px);
  border-color: var(--copper-soft);
  box-shadow: 0 24px 40px -28px rgba(90,52,23,.45);
}
.chapter::before {
  content: "Chapter " counter(bab, upper-roman);
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--copper);
  font-size: 15px;
  margin-bottom: 14px;
}
.chapter h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--navy-ink); }
.chapter p { margin: 0; color: var(--muted); font-size: 15px; }
.chapter svg { position: absolute; top: 28px; right: 26px; width: 34px; height: 34px; stroke: var(--navy); opacity: .85; }

/* ---------- Company profile ---------- */
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.profile-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--copper-soft);
  text-underline-offset: 4px;
}
.profile-link svg { width: 18px; height: 18px; stroke: var(--copper); flex: none; }
.profile-link:hover { color: var(--navy-ink); text-decoration-color: var(--copper); }

.profile { padding: 0 0 96px; position: relative; z-index: 1; scroll-margin-top: 24px; }
.profile .story-head { margin-bottom: 40px; }
.profile-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 4 / 3; /* Canva deck ratio */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--latte);
  border: 1px solid var(--latte);
  box-shadow: 0 30px 60px -36px rgba(2,43,66,.55);
}
.profile-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.profile-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.btn-outline svg { width: 18px; height: 18px; stroke: currentColor; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline:focus-visible { outline: 3px solid var(--copper-soft); outline-offset: 3px; }
.profile-hint { display: none; font-size: 13px; color: var(--muted); }

/* ---------- Interest form (Google Form) ---------- */
.interest { padding: 0 0 96px; position: relative; z-index: 1; scroll-margin-top: 24px; }
.interest .story-head { margin-bottom: 40px; }
.form-frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  height: clamp(560px, 80vh, 900px); /* form scrolls inside this card */
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--latte);
  box-shadow: 0 30px 60px -36px rgba(2,43,66,.55);
}
.form-frame::before { /* shown until Google's form paints over it */
  content: attr(data-loading);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 14px; color: var(--muted);
}
.form-frame iframe { position: relative; width: 100%; height: 100%; border: 0; }

/* ---------- Closing CTA ---------- */
.closing {
  position: relative; z-index: 1;
  margin: 0 auto 72px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(216,164,109,.25), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.closing h2 { color: #fff; }
.closing h2 em { color: var(--copper-soft); }
.closing p { margin: 0 0 28px; color: rgba(246,239,227,.82); max-width: 32em; }
.closing .btn-wa { background: var(--cream); color: var(--navy-ink); }
.closing .btn-wa:hover { background: #fff; }
.closing .mark { width: clamp(120px, 16vw, 200px); opacity: .9; }
.closing .phone { margin-top: 16px; font-size: 14px; color: rgba(246,239,227,.7); }
.closing .phone a { color: var(--cream); text-decoration: none; font-weight: 500; letter-spacing: .02em; }

/* ---------- Footer ---------- */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--latte);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer em { font-family: "Fraunces", Georgia, serif; color: var(--navy); }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.35);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.fab.show { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: #fff; }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* Chapter label follows the page language */
:lang(id) .chapter::before { content: "Bab " counter(bab, upper-roman); }

/* ---------- Language switch ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  padding-top: 20px;
}
.topbar .wrap { display: flex; justify-content: flex-end; }
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--latte);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -12px rgba(2,43,66,.45);
}
.lang svg { width: 16px; height: 16px; margin: 0 6px 0 8px; stroke: var(--copper); }
.lang a {
  display: block;
  min-width: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-align: center; text-decoration: none;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.lang a:hover { color: var(--navy-ink); }
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.lang a:focus-visible { outline: 2px solid var(--copper-soft); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 76px; }
  .topbar { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .brand { order: -1; width: min(260px, 70vw); }
  .eyebrow { justify-content: center; }
  .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
  .lead, .roast { margin-inline: auto; }
  .cta-row { justify-content: center; flex-direction: column; }
  .profile { padding-bottom: 72px; }
  .profile-frame, .form-frame { border-radius: 12px; }
  .hero-links { justify-content: center; }
  .interest { padding-bottom: 72px; }
  .profile-hint { display: block; flex-basis: 100%; text-align: center; }
  .hero::after { right: 50%; top: 22%; transform: translate(50%, -50%); width: 480px; height: 480px; }
  .scroll-hint { display: none; }
  .chapters { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; text-align: center; }
  .closing p { margin-inline: auto; }
  .closing .mark { order: -1; margin: 0 auto; width: 110px; }
  .story { padding: 88px 0 72px; }
  footer .wrap { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
