/* =========================================================================
   Public pages: landing and sign-in.
   Consumes tokens.css. Same office surface as the product; the amber block
   appears only inside the product preview, where it means REVIEW.
   Bilingual convention: Indonesian leads, English follows in a <span>.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.pub {
  background: var(--surface-1); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body.pub--center { display: grid; place-items: center; padding: var(--s-5); }

h1, h3 { margin: 0; line-height: var(--lh-tight); color: var(--ink-strong); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Secondary language: a subtitle, always smaller than its primary. */
.pub-title > span, .pub-lede > span, .pub-kicker > span, .pub-point h3 > span, .pub-point p > span,
.pub-footer p > span, .pub-card__title > span, .pub-card__lede > span, .pub-alert > span,
.pub-shot__verdict > span, figcaption > span {
  display: block; font-size: 0.82em; color: var(--ink-faint); font-weight: var(--fw-regular); margin-top: 2px;
}
.pub-btn small, .pub-field__label small {
  display: block; font-size: 0.78em; font-weight: var(--fw-medium); opacity: 0.72; line-height: 1.2;
}

.pub-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }

/* --- Brand ---------------------------------------------------------------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: var(--fw-heavy);
  letter-spacing: -0.02em; color: var(--ink-strong);
}
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.brand__mark svg { width: 16px; height: 16px; display: block; }
.brand__sub { font-size: 10.5px; font-weight: var(--fw-semibold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-left: 2px; align-self: center; }

/* --- Header ---------------------------------------------------------------- */
.pub-header { background: var(--surface-0); border-bottom: 1px solid var(--line); }
.pub-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }

/* --- Buttons --------------------------------------------------------------- */
.pub-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0;
  background: var(--brand); color: var(--ink-inverse); border: 1px solid var(--brand);
  border-radius: var(--r-md); padding: 10px 18px; line-height: 1.2;
  font-size: 14.5px; font-weight: var(--fw-semibold); cursor: pointer; text-align: left;
}
.pub-btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.pub-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); padding: 7px 14px; font-size: 13.5px; }
.pub-btn--ghost:hover { background: var(--surface-1); border-color: var(--ink-faint); }
.pub-btn--block { width: 100%; align-items: center; }

/* --- Hero ------------------------------------------------------------------ */
.pub-hero { padding: var(--s-7) 0 var(--s-6); }
.pub-hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-7); align-items: center; }
@media (max-width: 960px) { .pub-hero__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.pub-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: var(--s-4);
}
.pub-kicker > span { text-transform: none; letter-spacing: 0.04em; }
.pub-title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: var(--fw-heavy); letter-spacing: -0.03em; line-height: 1.05; }
.pub-title > span { font-size: 0.5em; font-weight: var(--fw-medium); color: var(--ink-muted); letter-spacing: -0.01em; margin-top: 8px; }
.pub-lede { margin-top: var(--s-5); font-size: 16px; color: var(--ink); max-width: 52ch; }
.pub-actions { margin-top: var(--s-5); display: flex; gap: var(--s-3); }

.pub-powered { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-6); }
.pub-powered__label { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.pub-powered__logo { height: 30px; width: auto; display: block; }
.pub-powered--small { margin-top: 0; }
.pub-powered--small .pub-powered__logo { height: 22px; }
.pub-powered--small .pub-powered__label { font-size: 11.5px; }

/* --- Product preview -------------------------------------------------------- */
.pub-hero__figure { margin: 0; }
.pub-shot { background: var(--hmi-0); color: var(--hmi-ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hmi); }
.pub-shot__bar { display: flex; align-items: center; gap: var(--s-3); padding: 9px 14px; background: var(--hmi-1); border-bottom: 1px solid var(--hmi-line); font-size: 12px; color: var(--hmi-ink-dim); }
.pub-shot__id { font-family: var(--font-mono); font-weight: var(--fw-semibold); color: var(--hmi-ink); padding: 1px 7px; border: 1px solid var(--hmi-line); border-radius: var(--r-sm); }
.pub-shot__stage { padding: 12px; background: var(--hmi-0); }
/* The frame is the image's own positioning context, so the box's
   percentages (the model's bbox fractions) map onto the image, not the
   padded stage around it. */
.pub-shot__frame { position: relative; line-height: 0; border-radius: 6px; overflow: hidden; }
.pub-shot__frame img { display: block; width: 100%; height: auto; }
.pub-shot__box {
  position: absolute; border: 2px solid var(--review-bg); border-radius: var(--r-overlay);
  background: rgba(245, 165, 36, 0.10); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.pub-shot__box i {
  position: absolute; left: -2px; top: -2px; transform: translateY(-100%);
  background: var(--review-bg); color: var(--review-on); font-style: normal;
  font-size: 11px; font-weight: var(--fw-semibold); line-height: 1.6; padding: 1px 7px;
  border-radius: 3px 3px 0 0; white-space: nowrap;
}
.pub-shot__verdict {
  padding: 14px 18px; background: var(--review-bg); color: var(--review-on);
  font-family: var(--font-display); font-size: 34px; font-weight: var(--fw-heavy); letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 12px;
}
.pub-shot__verdict > span { display: inline; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--review-on); opacity: 0.72; font-weight: var(--fw-semibold); margin: 0; }
figcaption { margin-top: var(--s-2); font-size: 11.5px; color: var(--ink-faint); }
figcaption > span { display: inline; margin-left: 6px; }

/* --- Points ------------------------------------------------------------------ */
.pub-points { padding: var(--s-6) 0 var(--s-7); border-top: 1px solid var(--line-faint); background: var(--surface-0); }
.pub-points__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.pub-point h3 { font-size: 15px; font-weight: var(--fw-bold); letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.pub-point p { font-size: 13.5px; color: var(--ink-muted); }

/* --- Footer ------------------------------------------------------------------ */
.pub-footer { border-top: 1px solid var(--line); background: var(--surface-0); padding: 18px 0; font-size: 11.5px; color: var(--ink-faint); }
.pub-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.pub-footer p { max-width: 80ch; }
.pub-footer strong { color: var(--ink-muted); }

/* --- Sign-in card ------------------------------------------------------------ */
.pub-card {
  width: min(100%, 420px); background: var(--surface-0); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6) var(--s-6) var(--s-5); box-shadow: var(--shadow-2);
}
.pub-card__title { margin-top: var(--s-6); font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-heavy); letter-spacing: -0.025em; }
.pub-card__lede { margin-top: var(--s-2); font-size: 13.5px; color: var(--ink-muted); }
.pub-form { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.pub-field { display: block; }
.pub-field__label { display: block; font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink); margin-bottom: 6px; }
.pub-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink-strong);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-0);
}
.pub-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.pub-alert {
  margin-top: var(--s-4); padding: 10px 12px; border-radius: var(--r-md);
  background: var(--review-bg-soft); border: 1px solid var(--review-line); color: var(--review-deep);
  font-size: 13.5px; font-weight: var(--fw-semibold);
}
.pub-alert > span { color: var(--review-deep); opacity: 0.8; }
.pub-card__powered { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-faint); }

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