/* ============ Lolos: iOS app landing aesthetic ============ */
:root {
  /* palette derived from the app icon */
  --coral: #E96450;          /* checkmark / primary accent */
  --coral-deep: #D86D56;     /* gradient bottom */
  --coral-light: #F19684;    /* gradient top */
  --cream: #FFF9F6;          /* badge */
  --ink: #1D1D1F;            /* near-black, apple-style */
  --ink-soft: rgba(29,29,31,0.72);
  --ink-mute: rgba(29,29,31,0.52);
  --bg: #FFFFFF;
  --bg-warm: #FBF5F2;        /* warm light section */
  --line: #EFE7E3;
  --radius: 20px;
  --maxw: 1080px;
  --grad: linear-gradient(180deg, var(--coral-light) 0%, var(--coral-deep) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav (translucent glass) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { font-size: 14px; color: var(--ink-soft); }
.langtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.langtoggle button { border: 0; background: transparent; padding: 5px 13px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.langtoggle button.active { background: var(--coral); color: #fff; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 360px at 50% -8%, rgba(233,100,80,0.12), transparent 70%);
  pointer-events: none;
}
.hero .appicon {
  width: 116px; height: 116px; border-radius: 26px; display: block; margin: 0 auto 26px;
  box-shadow: 0 18px 40px rgba(216,109,86,0.32), 0 4px 10px rgba(0,0,0,0.08);
}
.hero h1 {
  font-size: 56px; line-height: 1.07; letter-spacing: -0.03em; font-weight: 600;
  margin: 0 0 18px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 21px; line-height: 1.38; color: var(--ink-soft); max-width: 560px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* App Store badge button */
.appstore-badge { display: inline-flex; align-items: center; transition: transform 0.15s ease, opacity 0.15s ease; }
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); opacity: 0.9; }
.appstore-badge img { height: 54px; width: auto; display: block; }

.pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(233,100,80,0.4); color: var(--coral);
  padding: 11px 20px; border-radius: 980px; font-size: 15px; font-weight: 500;
}
.pill-link:hover { text-decoration: none; background: rgba(233,100,80,0.06); }

.hero .note { margin-top: 18px; font-size: 13px; color: var(--ink-mute); }

/* ---------- Phone mockup ---------- */
.mock { margin-top: 56px; display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; border-radius: 46px;
  background: #1d1d1f; padding: 11px;
  box-shadow: 0 40px 80px rgba(216,109,86,0.22), 0 12px 30px rgba(0,0,0,0.18);
  position: relative;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--grad); display: flex; flex-direction: column; align-items: center;
  padding: 54px 22px 28px; text-align: center;
}
.phone .notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #1d1d1f; border-radius: 0 0 16px 16px; z-index: 2; }
.phone .screen .badge-ic { width: 84px; height: 84px; border-radius: 20px; background: var(--cream); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.phone .screen .badge-ic svg { width: 46px; height: 46px; }
.phone .screen h3 { color: #fff; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.02em; }
.phone .screen p { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0 0 22px; }
.phone .screen .row { width: 100%; background: rgba(255,255,255,0.16); border-radius: 12px; height: 44px; margin-bottom: 10px; display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.phone .screen .row .dot { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,0.55); flex: none; }
.phone .screen .row .ln { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.55); }
.phone .screen .cta { margin-top: auto; width: 100%; background: var(--cream); color: var(--coral-deep); border-radius: 12px; height: 46px; display: grid; place-items: center; font-weight: 600; font-size: 15px; }

/* ---------- Rating band ---------- */
.rating-band { padding: 4px 0 8px; text-align: center; }
.rating-card {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 18px 30px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-warm); box-shadow: 0 10px 28px rgba(216,109,86,0.10);
}
.rating-num { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.rating-right { text-align: left; }
.stars { display: inline-flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; fill: var(--coral); display: block; }
.rating-meta { margin: 7px 0 0; font-size: 13px; color: var(--ink-mute); }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.warm { background: var(--bg-warm); }
.sec-head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.sec-head h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; }
.sec-head p { font-size: 19px; color: var(--ink-soft); margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--coral); text-transform: uppercase; margin-bottom: 12px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
section.warm .feature { background: #fff; }
.feature .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(233,100,80,0.1); color: var(--coral); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* final CTA */
.cta-final { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-final .appicon-sm { width: 80px; height: 80px; border-radius: 19px; margin: 0 auto 22px; box-shadow: 0 12px 28px rgba(216,109,86,0.28); }
.cta-final h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 14px; }
.cta-final p { font-size: 18px; color: var(--ink-soft); margin: 0 auto 26px; max-width: 500px; }
.cta-final .ctas { display: flex; justify-content: center; }
.cta-final .note { margin-top: 16px; font-size: 13px; color: var(--ink-mute); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-mute); font-size: 14px; background: var(--bg-warm); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-soft); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 24px; }
.legal .updated { color: var(--ink-mute); font-size: 14px; margin-bottom: 8px; }
.legal h1 { font-size: 40px; margin: 0 0 8px; letter-spacing: -0.03em; font-weight: 600; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.02em; font-weight: 600; }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { color: #313133; font-size: 17px; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .note { background: var(--bg-warm); border: 1px solid var(--line); border-left: 4px solid var(--coral); padding: 16px 20px; border-radius: 12px; margin: 20px 0; }
.legal .backhome { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-weight: 500; }

/* lang visibility: hide only the OFF language with !important so component
   display values (grid/inline/block) on the ON language are preserved */
body:not(.lang-en) [data-lang-block="en"] { display: none !important; }
body.lang-en [data-lang-block="id"] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; }
  .sec-head h2 { font-size: 30px; }
  section.block { padding: 60px 0; }
  .grid { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .cta-final h2 { font-size: 28px; }
}
