/*
  RuangAR (ruangar.com) — Shared Stylesheet
  Design Direction:
  - Palette (R-29): Warm paper ground (#FAF7F2), ink (#17191C), muted slate (#4B525E),
    sand surface (#F1ECE3), cobalt blue accent (#2A5BD7).
  - Typography (R-06): Bricolage Grotesque (headings) + Lexend (body) for crisp
    readability in Indonesian and English legal/product copy.
  - Dials: ENERGY 2 / RHYTHM 2 / MOTION 1.
*/
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-alt: #F1ECE3;
  --ink: #17191C;
  --muted: #4B525E;
  --line: #DED7CA;
  --accent: #2A5BD7;
  --accent-soft: #E6EEFF;
  --accent-ink: #1A3E9E;
  --ok: #157347;
  --ok-soft: #E7F6EE;
  --warn: #9A5B00;
  --warn-soft: #FFF4E0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --head: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --body: 'Lexend', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.68 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: 6px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

a[href], button, summary, select, input[type="submit"] {
  cursor: pointer;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(780px, 100% - 32px);
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.95);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 800;
  font-size: 20px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1 var(--body);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.btn:hover {
  background: var(--surface-alt);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

/* Main & Sections */
main { padding-bottom: 72px; }
.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin-bottom: 16px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.hero-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.fact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fact-list li {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list span { color: var(--muted); }
.fact-list strong { text-align: right; font-weight: 600; }

.section {
  padding: 52px 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 26px;
  max-width: 64ch;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

/* Product Spotlight */
.app-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}
.app-showcase h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.app-showcase p { color: var(--muted); margin-bottom: 16px; }
.app-specs {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14px;
}
.app-specs dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 10px;
}
.app-specs dt:first-child { margin-top: 0; }
.app-specs dd { margin: 2px 0 0; font-weight: 600; }

/* Legal Hub List (varied from card grid: structured directory rows) */
.doc-list {
  display: grid;
  gap: 12px;
}
.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.doc-row:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.doc-row h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--accent-ink);
}
.doc-row p {
  font-size: 14px;
  color: var(--muted);
}
.doc-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Legal Document Pages */
.doc-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.doc-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.prose {
  display: grid;
  gap: 28px;
}
.prose section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.prose h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.prose h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { margin-top: 8px; }

.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 12px;
  font-size: 15px;
}
.callout.ok {
  background: var(--ok-soft);
  border-left-color: var(--ok);
}
.callout.warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}

/* Data Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 700;
  background: var(--surface-alt);
}

/* Deletion Request Form */
.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 14px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: 400 15px/1.4 var(--body);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-soft); color: #0F5132; border: 1px solid #BADBCC; }
.form-status.err { background: #FDECEA; color: #842029; border: 1px solid #F5C2C7; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hero-grid, .app-showcase {
    grid-template-columns: 1fr;
  }
  .doc-row {
    grid-template-columns: 1fr;
  }
  .doc-tag { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
