/* RuangArsitek Landing — rev.3. Lihat DESIGN.md. */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --ink: #2e2c29;
  --ink-2: #5a5650;
  --line: #e6e2da;
  --line-strong: #d5cfc3;
  --sage: #b85c3c; /* app primary (terracotta), swapped in per owner request */
  --sage-deep: #a24e31; /* app primaryHover */
  --sage-soft: #f7ebe0; /* app primarySofter */
  --white: #ffffff;

  --text-body: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --text-lead: clamp(1.1rem, 1.03rem + 0.3vw, 1.25rem);
  --text-h3: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --text-h2: clamp(1.7rem, 1.45rem + 1.1vw, 2.5rem);
  --text-h1: clamp(2rem, 1.65rem + 1.6vw, 2.95rem);

  --radius: 12px;
  --radius-sm: 8px;
  --pad-section: clamp(3.5rem, 2.8rem + 3.5vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: var(--text-h1); font-weight: 800; line-height: 1.12; }
h2 { font-size: var(--text-h2); font-weight: 800; }
h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1rem; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.measure { max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage);
  color: var(--white);
  padding: 0.75em 1.25em;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
  min-height: 66px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav__brand img { width: 32px; height: 32px; border-radius: 6px; }
.nav__links { display: none; gap: clamp(1.5rem, 2.2vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ink); border-bottom-color: var(--sage); }
.btn.nav__cta { display: none; }
.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.nav__menu-btn:hover { border-color: var(--ink-2); }
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  border-top: 1px solid var(--line);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 0.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: none; }

@media (min-width: 820px) {
  .nav__links { display: flex; }
  .btn.nav__cta { display: inline-flex; }
  .nav__menu-btn { display: none; }
  .nav__mobile { display: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--sage-deep); }
.btn--soft { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--soft:hover { border-color: var(--ink-2); }
.btn--quiet {
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.75rem, 2.2rem + 3vw, 5rem) 0 clamp(3rem, 2.4rem + 3.5vw, 5.5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 1.8rem + 2.5vw, 3.5rem);
  align-items: center;
}
.hero h1 { max-width: 20ch; }
.hero__lead { font-size: var(--text-lead); color: var(--ink-2); max-width: 52ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-bottom: 0.9rem; }
.hero__meta { color: var(--ink-2); font-size: 0.93rem; margin-bottom: 1.75rem; }

.note {
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  max-width: 54ch;
}
.note p { margin: 0; font-size: 0.96rem; color: var(--sage-deep); }

.hero__panel { margin: 0; }
.hero__panel figcaption {
  margin: 1.1rem auto 0;
  max-width: 336px;
  font-size: 0.87rem;
  color: var(--ink-2);
}

@media (min-width: 940px) {
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
}

/* ---------- Rekonstruksi layar aplikasi.
   Warna diambil dari tema aplikasi yang sebenarnya (RaColors light) supaya
   yang dilihat calon pengguna di halaman ini sama dengan yang mereka temukan
   setelah memasang aplikasinya. ---------- */

.phone {
  --app-bg: #faf6f0;
  --app-surface: #ffffff;
  --app-fg: #2a2520;
  --app-fg-strong: #1a1612;
  --app-fg-muted: #6b6258;
  --app-border: #ebe2d5;
  --app-primary: #b85c3c;
  --app-warning: #c99544;

  max-width: 336px;
  margin: 0 auto;
  background: var(--app-bg);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(46, 44, 41, 0.05), 0 24px 48px -32px rgba(46, 44, 41, 0.65);
  font-size: 13px;
  line-height: 1.45;
  color: var(--app-fg);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem 0.5rem;
  font-size: 10.5px;
  color: var(--app-fg-muted);
}
.phone__status strong { color: var(--app-fg-strong); font-size: 12px; font-weight: 700; }
.phone__tier {
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 9.5px;
  font-weight: 600;
}

.phone__body { padding: 0.35rem 0.9rem 0.9rem; }

.phone__eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--app-fg-muted);
  margin: 0 0 0.3rem;
}
.phone__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--app-fg-strong);
  margin: 0 0 0.75rem;
}

.phone__composer {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 0.7rem 0.75rem 0.5rem;
  margin-bottom: 0.95rem;
}
/* Aplikasi memakai #a39e96 untuk teks placeholder ini. Pada ukuran mockup yang
   jauh lebih kecil, warna itu cuma 2,66:1 terhadap putih, jadi di sini
   digelapkan agar tetap terbaca. */
.phone__hint { color: var(--app-fg-muted); margin: 0 0 0.55rem; font-size: 12px; }
.phone__composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--app-border);
  padding-top: 0.45rem;
  font-size: 11.5px;
}
.phone__composer-row span { color: var(--app-fg-muted); }
.phone__send { color: var(--app-primary); font-weight: 700; }

.phone__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-fg-strong);
  margin: 0 0 0.5rem;
}
.phone__label em { font-style: normal; font-weight: 600; color: #a24e31; font-size: 10.5px; }

.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.95rem; }
.phone__tile {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 13px;
  padding: 0.7rem 0.65rem;
}
.phone__tile-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}
.phone__tile b { display: block; font-size: 12px; color: var(--app-fg-strong); }
.phone__tile span { display: block; font-size: 10.5px; color: var(--app-fg-muted); line-height: 1.35; }

.phone__empty {
  background: var(--app-surface);
  border: 1px dashed var(--app-border);
  border-radius: 13px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  font-size: 11px;
  color: var(--app-fg-muted);
}

.phone__nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  padding: 0.5rem 0.6rem 0.7rem;
  margin-top: 0.2rem;
}
.phone__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  font-size: 9px;
  color: var(--app-fg-muted);
  min-width: 40px;
}
.phone__nav-item.is-active { color: var(--app-primary); font-weight: 700; }
.phone__fab {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-10px);
  box-shadow: 0 6px 14px -6px rgba(184, 92, 60, 0.8);
}

/* ---------- Sections ---------- */

section { padding: var(--pad-section) 0; }
.section--alt { background: var(--bg-alt); }
.section--sage { background: var(--sage-soft); }

.section-head { margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem); max-width: 60ch; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-2); font-size: var(--text-lead); margin: 0; }

/* ---------- Fitur ---------- */

.features { display: grid; gap: clamp(1rem, 0.85rem + 0.8vw, 1.5rem); grid-template-columns: 1fr; }

.feature-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(46, 44, 41, 0.04), 0 18px 36px -30px rgba(46, 44, 41, 0.55);
  display: grid;
  gap: 1.5rem;
}
.feature-main__lede { color: var(--ink-2); max-width: 60ch; margin: 0; }
.feature-main__note { font-size: 0.94rem; color: var(--ink-2); margin: 0.75rem 0 0; }

.spec {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
}
.spec h4 { margin: 0 0 0.7rem; font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.spec li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; line-height: 1.5; }
.spec li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--sage);
}

@media (min-width: 820px) {
  .feature-main { grid-template-columns: 1.35fr 0.65fr; align-items: start; }
}

.feature-row { display: grid; gap: clamp(1rem, 0.85rem + 0.8vw, 1.5rem); grid-template-columns: 1fr; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

@media (min-width: 820px) {
  .feature-row { grid-template-columns: repeat(3, 1fr); }
  .feature-row--two { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cara kerja ---------- */

.steps { display: grid; gap: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); grid-template-columns: 1fr; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Harga ---------- */

.pricing { display: grid; gap: clamp(1rem, 0.85rem + 0.8vw, 1.5rem); grid-template-columns: 1fr; }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.tier h3 { margin: 0; }
.tier__price { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.tier__price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tier__for { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.tier li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; line-height: 1.5; }
.tier li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--sage);
}

@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 0.5rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.faq p { color: var(--ink-2); margin: 0 0 1rem; max-width: 64ch; font-size: 0.98rem; }

.faq-contact { margin-top: 1.75rem; color: var(--ink-2); font-size: 0.96rem; }
.faq-contact a { color: var(--sage-deep); font-weight: 600; }

/* ---------- Penutup ---------- */

.closing { text-align: left; }
.closing__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.4rem + 2vw, 3rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.closing h2 { margin-bottom: 0.5rem; }
.closing p { color: var(--ink-2); margin: 0; max-width: 52ch; }

@media (min-width: 820px) {
  .closing__inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}

/* ---------- Footer ---------- */

footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.footer__brand img { width: 26px; height: 26px; border-radius: 5px; }
.footer__note { color: var(--ink-2); font-size: 0.92rem; margin: 0; max-width: 56ch; }
footer small { color: var(--ink-2); font-size: 0.88rem; }

/* Tautan legal di footer. Wajib terlihat: syarat verifikasi payment gateway
   dan Google Play, sekaligus dipanggil aplikasi dari layar login/daftar. */
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a { color: var(--ink-2); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.footer__legal a:hover { color: var(--sage-deep); border-bottom-color: var(--sage); }
