/* Cukup — shared styles. Colors and type from the Cukup brand guide (Bali Modern). */
:root {
  --forest: #2F4A3A;
  --forest-2: #3B5A48;
  --terracotta: #C4622D;
  --terracotta-text: #9C4A1F; /* terracotta dark enough for small text on cream */
  --cream: #F7F1E6;
  --sand: #E3D7C2;
  --ink: #22332A;
  --muted: #5E6B62;
  --peach: #F2B48F;
  --mint: #D8E3DA;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { display: block; }
a { color: var(--forest); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { border-radius: 22%; flex-shrink: 0; }

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--terracotta-text);
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-md);
  font: 500 17px/1 var(--font-sans);
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--forest);
  transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--ink); color: var(--cream); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-peach { background: var(--peach); color: var(--ink); border-color: var(--peach); font-weight: 700; }
.btn-block { width: 100%; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* The journey: Pesawat → Transportasi → Restoran → Tempat liburan → Tiket pulang */
.journey {
  --dot: 88px;
  position: relative;
  display: flex; flex-direction: column; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.journey::before {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - 1.5px);
  top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2);
  border-left: 3px dashed var(--terracotta);
}
.journey li { position: relative; display: flex; align-items: center; gap: 20px; }
.journey .dot {
  width: var(--dot); height: var(--dot); flex-shrink: 0;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.journey .dot svg { width: 50%; height: 50%; }
.journey .dot.is-goal { background: var(--terracotta); }
.journey .num { font-size: 13px; font-weight: 700; color: var(--terracotta-text); }
.journey .title { font-size: 20px; font-weight: 700; }
.journey .desc { font-size: 15px; color: var(--muted); }
.journey.is-small { --dot: 52px; gap: 14px; }
.journey.is-small li { gap: 14px; }
.journey.is-small .title { font-size: 16px; }
.journey.is-small .desc { font-size: 13px; }
.flip { transform: scaleX(-1); }

/* Opening moment (see splash.js): the Cukup logo, then the five things Cukup counts, one by one,
   then the page. Only shown when <html> has .splash; a tap skips it. */
#splash { display: none; }
html.splash #splash {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 24px; background: var(--cream); color: var(--forest); cursor: pointer;
}
html.splash body { overflow: hidden; }
html.splash #splash:not(.is-on) { animation: sp-leave .5s ease-in 4s forwards; } /* fallback if splash.js does not run */
#splash .sp-brand { display: flex; align-items: center; gap: 16px; }
#splash .sp-mark { width: 88px; height: 88px; border-radius: 26%; box-shadow: 0 12px 32px rgba(47, 74, 58, 0.25); opacity: 0; transform: scale(.6) rotate(-8deg); }
#splash .sp-word { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.01em; opacity: 0; transform: translateX(-12px); }
#splash .sp-journey { width: min(340px, 100%); }
#splash .sp-journey .dot { color: var(--cream); }
#splash .sp-journey .dot.is-goal { color: var(--white); }
#splash .sp-journey::before { transform: scaleY(0); transform-origin: top; }
#splash .sp-journey li { opacity: 0; transform: translateY(10px); }
#splash.is-on .sp-mark { animation: sp-in .7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
#splash.is-on .sp-word { animation: sp-in .5s ease-out .3s forwards; }
#splash.is-on .sp-journey::before { animation: sp-line 1.5s ease-in-out .85s forwards; }
#splash.is-on .sp-journey li { animation: sp-in .4s ease-out forwards; animation-delay: calc(.85s + var(--i) * .3s); }
#splash.is-leaving { animation: sp-leave .6s ease-in forwards; }
@keyframes sp-in { to { opacity: 1; transform: none; } }
@keyframes sp-line { to { transform: none; } }
@keyframes sp-leave { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #splash .sp-mark, #splash .sp-word, #splash .sp-journey li, #splash .sp-journey::before { opacity: 1; transform: none; animation: none !important; }
  #splash.is-leaving { animation: sp-fade-out .3s linear forwards; }
  @keyframes sp-fade-out { to { opacity: 0; visibility: hidden; } }
}

/* The sign-up box on the front of the website and the app (see auth-box.js) */
.ab { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ab [hidden] { display: none !important; }
.ab-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--forest); }
.ab-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.ab-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: var(--radius-md); border: 1.5px solid var(--forest); background: var(--white); color: var(--forest); font: 500 16px var(--font-sans); text-decoration: none; cursor: pointer; }
.ab-btn:hover { background: var(--cream); }
.ab-btn.is-off, .ab-btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.ab-g { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--sand); color: #4285F4; font-weight: 700; font-size: 14px; }
.ab-soon { font-size: 13px; color: var(--muted); margin-top: -4px; }
.ab-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.ab-or::before, .ab-or::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.ab-form { display: flex; flex-direction: column; gap: 10px; }
.ab-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.ab-field input { height: 48px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--sand); background: var(--white); font: 16px var(--font-sans); color: var(--ink); }
.ab-field input:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.ab-err { color: #A32D2D; font-size: 14px; }
.ab-primary { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius-md); border: none; background: var(--forest); color: var(--cream); font: 700 16px var(--font-sans); text-decoration: none; cursor: pointer; }
.ab-primary:disabled { opacity: .6; }
.ab-link { background: none; border: none; padding: 4px 0; color: var(--terracotta-text); font: 500 15px var(--font-sans); cursor: pointer; align-self: center; }
.ab-try { align-self: center; color: var(--forest); font-weight: 700; font-size: 15px; }
.ab-btn:focus-visible, .ab-primary:focus-visible, .ab-link:focus-visible, .ab-try:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* Account name chip (app screens and the website menu) */
.me-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 150px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--sand); color: var(--forest); font-weight: 600; font-size: 14px; text-decoration: none; }
.me-chip:hover { background: var(--cream); }
.me-chip .me-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--cream); font-size: 14px; }
.me-chip .me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.has-photo { background-size: cover; background-position: center; background-color: var(--sand); color: transparent !important; }
