:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #e9f0fb;
  --ink: #13233d;
  --muted: #5c6d86;
  --line: #d7e0ed;
  --brand: #183b73;
  --brand-strong: #102a56;
  --accent: #2563a9;
  --accent-soft: #dbeafe;
  --warn: #b7791f;
  --warn-soft: #fff4d8;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --shadow: 0 18px 50px rgba(16, 42, 86, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI Variable",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: 88px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(212, 223, 219, 0.82);
  background: rgba(244, 247, 246, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 42, 86, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav button,
.mobile-nav button,
.tab-list button,
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav button {
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 700;
}

.nav button:hover,
.nav button.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 8px 22px rgba(16, 42, 86, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(16, 42, 86, 0.22);
}

.btn.primary:hover {
  background: var(--brand-strong);
}

.btn.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--brand);
}

.btn.ghost {
  color: var(--brand);
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: calc(100dvh - 98px);
  padding: 18px 0 34px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 12px;
  background: rgba(220, 238, 231, 0.9);
  color: var(--accent);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero .lead {
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-photo {
  min-height: clamp(360px, 50vw, 560px);
  background:
    linear-gradient(180deg, rgba(16, 42, 86, 0), rgba(16, 42, 86, 0.22)),
    url("./assets/hero-agency-consultation.png") center/cover;
}

.hero-brief {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px 18px;
  backdrop-filter: blur(16px);
}

.hero-brief p {
  max-width: 42ch;
  margin: 0;
  color: #263a34;
  font-weight: 750;
  line-height: 1.38;
}

.text-link {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--brand);
  padding: 0 0 3px;
  font-weight: 900;
}

.text-link:active {
  transform: translateY(1px);
}

.section {
  padding: 54px 0;
}

.section.compact {
  padding: 28px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head.narrow {
  max-width: 680px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-item {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  letter-spacing: 0;
}

.trust-item strong {
  color: var(--brand);
  font-size: 16px;
}

.trust-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.journey-card {
  display: grid;
  align-content: end;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(16, 42, 86, 0.06);
}

.journey-card.feature {
  grid-row: span 2;
  gap: 18px;
  padding: 16px;
}

.journey-card.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  object-fit: cover;
}

.journey-card.photo {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(16, 42, 86, 0.02), rgba(16, 42, 86, 0.28)),
    url("./assets/profile-nuraini.png") center/cover;
}

.journey-card.accent {
  background:
    linear-gradient(135deg, rgba(37, 99, 169, 0.15), rgba(37, 99, 169, 0.03)),
    var(--surface);
}

.journey-card.dark {
  border-color: transparent;
  background: var(--brand-strong);
  color: #f4fbf8;
}

.journey-card.dark p {
  color: #cae2da;
}

.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.story-list {
  display: grid;
  gap: 10px;
}

.story-list div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.story-list strong {
  color: var(--brand);
}

.story-list span {
  color: var(--muted);
  line-height: 1.45;
}

.market-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 42, 86, 0.06);
}

.panel {
  padding: 18px;
}

.filters {
  position: sticky;
  top: 92px;
  align-self: start;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d6df;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.15);
}

.maid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.maid-card {
  overflow: hidden;
}

.maid-photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.maid-body {
  padding: 16px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  background: var(--surface-soft);
  color: var(--brand);
}

.status.verified,
.status.success {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.pending,
.status.warning {
  background: var(--warn-soft);
  color: var(--warn);
}

.status.issue {
  background: var(--danger-soft);
  color: var(--danger);
}

.price {
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.mini {
  font-size: 13px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.side-menu {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.side-menu button {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.side-menu button.active,
.side-menu button:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  letter-spacing: 0;
}

.wide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #dce8ee;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  min-height: 150px;
  padding: 18px;
}

.step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.tab-list,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-list button,
.segmented button {
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 14px;
  font-weight: 800;
}

.tab-list button.active,
.segmented button.active {
  background: var(--brand);
  color: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.profile-photo {
  min-height: 520px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.comparison {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px;
  text-align: left;
}

.compare-table th {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed #aec4ce;
  border-radius: var(--radius);
  background: rgba(237, 247, 249, 0.6);
  padding: 28px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 30;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transform: translateY(140%);
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 14;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border: 1px solid rgba(216, 226, 232, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(16, 42, 86, 0.18);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.mobile-nav button {
  border-radius: 18px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 900;
}

.mobile-nav button.active {
  background: var(--brand);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  inset: 71px 0 auto 0;
  z-index: 13;
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 16px 18px;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-menu button {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--brand);
  padding: 13px;
  text-align: left;
  font-weight: 900;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 540ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .maid-card,
  .card,
  .panel {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .maid-card:hover,
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111c2f;
    --surface-soft: #172744;
    --ink: #edf4ff;
    --muted: #aebed4;
    --line: #263a5f;
    --brand: #8ab4f8;
    --brand-strong: #c6dcff;
    --accent: #8ab4f8;
    --accent-soft: #172f55;
    --warn: #f5c96b;
    --warn-soft: #3d2c10;
    --danger: #ff9b94;
    --danger-soft: #3d1919;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  input,
  select,
  textarea {
    border-color: #315765;
    background: #0e1b22;
    color: var(--ink);
  }

  .topbar {
    background: rgba(11, 18, 32, 0.92);
  }

  .btn.primary {
    background: #8ab4f8;
    color: #07162d;
  }

  .btn.secondary {
    background: #111c2f;
  }

  .progress {
    background: #263a5f;
  }

  .hero-brief {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(11, 18, 32, 0.78);
  }

  .hero-brief p {
    color: #e3f2ec;
  }

  .journey-card.dark {
    background: #07100d;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .market-layout,
  .dashboard-layout,
  .profile-layout,
  .wide-grid,
  .journey-grid,
  .split-story {
    grid-template-columns: 1fr;
  }

  .filters,
  .side-menu {
    position: static;
  }

  .side-menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .journey-card.feature {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .app-shell {
    padding-bottom: 96px;
  }

  .page {
    width: min(100% - 24px, var(--max));
    padding-top: 18px;
  }

  .topbar-inner {
    width: min(100% - 24px, var(--max));
    min-height: 66px;
  }

  .top-actions .btn {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .hero {
    gap: 18px;
    padding-bottom: 18px;
  }

  .hero-photo {
    min-height: 300px;
  }

  .hero-brief {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 10px;
    border-radius: 16px;
    padding: 12px;
  }

  .hero-brief p {
    font-size: 13px;
    line-height: 1.32;
  }

  .text-link {
    font-size: 13px;
  }

  .trust-row,
  .dash-grid,
  .steps,
  .form-grid,
  .maid-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 38px 0;
  }

  .mobile-nav {
    display: grid;
  }

  .profile-photo {
    min-height: 360px;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 96px;
  }

  .journey-card,
  .journey-card.feature,
  .hero-panel {
    border-radius: 20px;
  }
}
