/* Custom styles Titik Pijar — mengikuti Branding Guidelines v1.0 */

:root {
  /* Palet merek */
  --tp-cream: #FEFCF6;
  --tp-ink: #040306;
  --tp-orange: #FE4800;
  --tp-blue: #0035CF;
  --tp-violet: #6723CE;
  --tp-magenta: #D40197;

  /* Warna pendukung */
  --tp-sand: #F1ECE2;
  --tp-muted: #5B5752;
  --tp-white: #FFFFFF;
  --tp-line: rgba(4, 3, 6, 0.12);

  /* Gradien editorial (hanya untuk bidang kecil & garis) */
  --tp-gradient: linear-gradient(135deg, var(--tp-blue), var(--tp-violet), var(--tp-magenta), var(--tp-orange));

  /* Tipografi */
  --tp-font-sans: 'Plus Jakarta Sans', Arial, sans-serif;
  --tp-font-serif: 'Lora', Georgia, serif;

  /* Skala jarak 8 · 16 · 24 · 32 · 48 · 64 */
  --tp-s1: 8px;
  --tp-s2: 16px;
  --tp-s3: 24px;
  --tp-s4: 32px;
  --tp-s5: 48px;
  --tp-s6: 64px;

  --tp-radius: 20px;

  /* Override token Bootstrap */
  --bs-body-font-family: var(--tp-font-sans);
  --bs-body-color: var(--tp-ink);
  --bs-body-bg: var(--tp-cream);
  --bs-link-color: var(--tp-blue);
  --bs-link-color-rgb: 0, 53, 207;
  --bs-link-hover-color: var(--tp-violet);
  --bs-border-color: var(--tp-line);
  --bs-focus-ring-color: rgba(0, 53, 207, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--tp-font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tp-ink);
  background: var(--tp-cream);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--tp-orange);
  color: var(--tp-ink);
}

.skip-link {
  position: absolute;
  top: var(--tp-s1);
  left: var(--tp-s1);
  z-index: 2000;
  background: var(--tp-ink);
  color: var(--tp-white);
  padding: var(--tp-s1) var(--tp-s2);
  border-radius: 8px;
}

.tp-icon-sm {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

/* ---------- Tombol & tautan ---------- */

.btn-tp-primary {
  --bs-btn-color: var(--tp-ink);
  --bs-btn-bg: var(--tp-orange);
  --bs-btn-border-color: var(--tp-orange);
  --bs-btn-hover-color: var(--tp-ink);
  --bs-btn-hover-bg: #ff6a2e;
  --bs-btn-hover-border-color: #ff6a2e;
  --bs-btn-active-color: var(--tp-ink);
  --bs-btn-active-bg: #e54100;
  --bs-btn-active-border-color: #e54100;
  --bs-btn-focus-shadow-rgb: 254, 72, 0;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: var(--tp-s3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tp-s1);
}

.btn-tp-primary.btn-lg {
  padding: 14px var(--tp-s4);
  font-size: 1.0625rem;
}

.btn-tp-ghost {
  --bs-btn-color: var(--tp-ink);
  --bs-btn-border-color: var(--tp-line);
  --bs-btn-hover-bg: var(--tp-sand);
  --bs-btn-hover-border-color: var(--tp-line);
  --bs-btn-hover-color: var(--tp-ink);
  border-radius: 999px;
  font-weight: 500;
}

.tp-link {
  color: var(--tp-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tp-link:hover {
  color: var(--tp-violet);
}

/* ---------- Navbar ---------- */

.tp-navbar {
  background: rgba(254, 252, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding-block: var(--tp-s2);
  transition: border-color 0.2s ease, padding 0.2s ease;
}

.tp-navbar.is-scrolled {
  border-bottom-color: var(--tp-line);
  padding-block: 10px;
}

.tp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tp-ink);
}

.tp-brand:hover {
  color: var(--tp-ink);
}

.tp-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tp-gradient);
}

.tp-brand-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.tp-brand-cat {
  font-size: 0.8125rem;
  color: var(--tp-muted);
  padding-left: 10px;
  border-left: 1px solid var(--tp-line);
}

.tp-navbar .nav-link {
  color: var(--tp-ink);
  font-weight: 500;
}

.tp-navbar .nav-link:hover,
.tp-navbar .nav-link:focus {
  color: var(--tp-blue);
}

/* ---------- Elemen umum ---------- */

.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-muted);
  margin-bottom: var(--tp-s2);
}

.tp-eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.tp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-orange);
  flex-shrink: 0;
}

.tp-section {
  padding-block: 96px;
}

.tp-section-sand {
  background: var(--tp-sand);
}

.tp-section-ink {
  background: var(--tp-ink);
  color: var(--tp-white);
}

.tp-section-head {
  max-width: 680px;
  margin-bottom: var(--tp-s5);
}

.tp-section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  margin-bottom: var(--tp-s2);
}

.tp-section-lead {
  font-size: 1.0625rem;
  color: var(--tp-muted);
  margin-bottom: 0;
}

.tp-section-ink .tp-section-lead {
  color: rgba(255, 255, 255, 0.75);
}

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

.tp-hero {
  padding-block: var(--tp-s6) 96px;
}

.tp-hero-title {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin-bottom: var(--tp-s3);
}

.tp-lead {
  font-size: 1.125rem;
  color: var(--tp-muted);
  max-width: 560px;
  margin-bottom: 0;
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-s1) var(--tp-s3);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tp-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--tp-s1);
}

.tp-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tp-ink);
}

.tp-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--tp-s4);
}

/* Lengkung tipis sebagai rujukan aperture — bukan bentuk logo baru */
.tp-arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--tp-line);
  pointer-events: none;
}

.tp-arc-1 {
  inset: 0;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.tp-arc-2 {
  width: 120px;
  height: 120px;
  right: 6%;
  bottom: 4%;
  border: 2px solid transparent;
  border-top-color: var(--tp-orange);
  border-right-color: var(--tp-violet);
  transform: rotate(20deg);
}

/* Panel krem untuk logo sumber (berlatar krem) */
.tp-logo-panel {
  position: relative;
  background: var(--tp-cream);
  border-radius: var(--tp-radius);
  padding: var(--tp-s2);
  width: min(360px, 100%);
  aspect-ratio: 1;
  box-shadow: 0 0 0 1px var(--tp-line), 0 24px 60px rgba(4, 3, 6, 0.08);
}

.tp-logo-panel img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Pesan utama ---------- */

.tp-pillar {
  border-top: 1px solid var(--tp-ink);
  padding-top: var(--tp-s3);
}

.tp-pillar-num {
  display: block;
  font-family: var(--tp-font-serif);
  font-style: italic;
  color: var(--tp-muted);
  margin-bottom: var(--tp-s1);
}

.tp-pillar h3 {
  font-size: 1.25rem;
  margin-bottom: var(--tp-s1);
}

.tp-pillar p {
  color: var(--tp-muted);
  margin-bottom: 0;
}

/* ---------- Layanan ---------- */

.tp-service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: var(--tp-s4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(4, 3, 6, 0.08);
}

.tp-service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tp-sand);
  margin-bottom: var(--tp-s3);
}

.tp-service-name {
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.tp-service-tagline {
  font-family: var(--tp-font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--tp-violet);
  margin-bottom: var(--tp-s2);
}

.tp-service-desc {
  color: var(--tp-muted);
}

.tp-service-meta {
  border-top: 1px solid var(--tp-line);
  padding-top: var(--tp-s2);
  margin-bottom: var(--tp-s3);
  font-size: 0.9375rem;
}

.tp-service-meta dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-service-meta dd {
  margin-bottom: 12px;
}

.tp-service-card .tp-link {
  margin-top: auto;
}

.tp-roles {
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: var(--tp-s4);
}

.tp-roles-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.tp-roles-lead {
  color: var(--tp-muted);
  margin-bottom: var(--tp-s3);
}

.tp-table {
  --bs-table-bg: transparent;
  font-size: 0.9375rem;
  min-width: 640px;
}

.tp-table thead th {
  font-weight: 600;
  border-bottom: 1px solid var(--tp-ink);
}

.tp-table tbody th {
  font-weight: 600;
}

.tp-table td,
.tp-table th {
  padding-block: 14px;
}

.tp-partner-note {
  display: flex;
  gap: var(--tp-s2);
  padding: var(--tp-s3);
  border-radius: var(--tp-radius);
  background: var(--tp-sand);
  border-left: 4px solid var(--tp-blue);
}

.tp-partner-note > svg {
  color: var(--tp-blue);
}

.tp-role-label {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--tp-line);
  background: var(--tp-white);
}

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

.tp-steps li {
  position: relative;
}

.tp-step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  margin-bottom: var(--tp-s2);
}

.tp-steps li:first-child .tp-step-num {
  background: var(--tp-orange);
  border-color: var(--tp-orange);
  color: var(--tp-ink);
}

.tp-steps h3 {
  font-size: 1.1875rem;
  margin-bottom: var(--tp-s1);
}

.tp-steps p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

/* ---------- Cara bercerita ---------- */

.tp-quote {
  font-family: var(--tp-font-serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  padding-left: var(--tp-s3);
  border-left: 3px solid;
  border-image: var(--tp-gradient) 1;
  margin: var(--tp-s4) 0 var(--tp-s3);
}

.tp-story {
  position: relative;
  counter-reset: story;
}

.tp-story::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--tp-line);
}

.tp-story li {
  position: relative;
  counter-increment: story;
  padding: 0 0 var(--tp-s4) var(--tp-s5);
}

.tp-story li:last-child {
  padding-bottom: 0;
}

.tp-story li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--tp-cream);
  border: 2px solid var(--tp-ink);
}

.tp-story li:nth-child(3)::before {
  background: var(--tp-orange);
  border-color: var(--tp-orange);
}

.tp-story h3 {
  font-size: 1.1875rem;
  margin-bottom: 4px;
}

.tp-story h3::before {
  content: counter(story, decimal-leading-zero) " ";
  font-family: var(--tp-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--tp-muted);
  margin-right: 6px;
}

.tp-story p {
  color: var(--tp-muted);
  margin-bottom: 0;
}

.tp-card-sand {
  background: var(--tp-sand);
  border-radius: var(--tp-radius);
  padding: var(--tp-s4);
}

.tp-card-sand h3 {
  font-size: 1.1875rem;
  margin-block: var(--tp-s2) var(--tp-s1);
}

.tp-card-sand p {
  color: var(--tp-muted);
}

.tp-card-icon {
  color: var(--tp-blue);
}

/* ---------- Untuk siapa ---------- */

.tp-audience {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--tp-s2);
}

.tp-audience li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tp-cream);
  border-radius: 14px;
  padding: var(--tp-s2) 20px;
  font-weight: 500;
}

.tp-audience svg {
  flex-shrink: 0;
  color: var(--tp-violet);
}

/* ---------- Konsultasi ---------- */

.tp-checklist li {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tp-checklist svg {
  flex-shrink: 0;
  color: var(--tp-blue);
  width: 20px;
  margin-top: 3px;
}

.tp-form {
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: var(--tp-s4);
}

.tp-form .form-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.tp-form .form-control,
.tp-form .form-select {
  border-radius: 12px;
  border-color: rgba(4, 3, 6, 0.2);
  padding: 10px 14px;
}

.tp-form .form-control:focus,
.tp-form .form-select:focus {
  border-color: var(--tp-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 53, 207, 0.18);
}

.tp-form .form-control::placeholder {
  color: #8a857e;
}

.tp-brief-preview {
  background: var(--tp-cream);
  border: 1px dashed rgba(4, 3, 6, 0.25);
  border-radius: 14px;
  padding: var(--tp-s2);
}

.tp-brief-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-brief-preview pre {
  font-family: var(--tp-font-sans);
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--tp-ink);
}

.tp-form-hint {
  font-size: 0.875rem;
  color: var(--tp-muted);
  text-align: center;
}

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

.tp-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(4, 3, 6, 0.18);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--tp-ink);
  --bs-accordion-btn-focus-box-shadow: none;
}

.tp-accordion .accordion-item {
  border-width: 0 0 1px;
}

.tp-accordion .accordion-button {
  font-weight: 600;
  font-size: 1.0625rem;
  padding-block: 20px;
}

.tp-accordion .accordion-button:focus-visible {
  outline: 2px solid var(--tp-blue);
  outline-offset: 2px;
}

.tp-accordion .accordion-body {
  color: var(--tp-muted);
  padding-top: 0;
  max-width: 62ch;
}

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

.tp-footer {
  background: var(--tp-cream);
  border-top: 1px solid var(--tp-line);
  padding-block: var(--tp-s6);
}

.tp-logo-panel-footer {
  width: 272px;
  border-radius: var(--tp-radius);
  box-shadow: none;
}

.tp-footer-tagline {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--tp-s1);
}

.tp-footer-motto {
  font-family: var(--tp-font-serif);
  color: var(--tp-muted);
  margin-bottom: var(--tp-s3);
}

.tp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tp-s1) var(--tp-s3);
  margin-bottom: var(--tp-s3);
}

.tp-footer-links a {
  color: var(--tp-ink);
  text-decoration: none;
  font-weight: 500;
}

.tp-footer-links a:hover {
  color: var(--tp-blue);
  text-decoration: underline;
}

.tp-footer-copy {
  font-size: 0.875rem;
  color: var(--tp-muted);
  margin-bottom: 0;
}

/* ---------- Mobile CTA ---------- */

.tp-mobile-bar {
  position: fixed;
  left: var(--tp-s2);
  right: var(--tp-s2);
  bottom: calc(var(--tp-s2) + env(safe-area-inset-bottom, 0px));
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-s2);
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(254, 252, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--tp-line), 0 12px 32px rgba(4, 3, 6, 0.12);
  transform: translateY(160%);
  transition: transform 0.25s ease;
}

.tp-mobile-bar.is-visible {
  transform: translateY(0);
}

/* ---------- Responsif ---------- */

@media (max-width: 991.98px) {
  .tp-section {
    padding-block: var(--tp-s6);
  }

  .tp-hero {
    padding-block: var(--tp-s4) var(--tp-s6);
  }

  .tp-hero-visual {
    padding: var(--tp-s2);
  }

  .tp-logo-panel {
    width: min(320px, 100%);
  }
}

@media (max-width: 767.98px) {
  .tp-service-card,
  .tp-roles,
  .tp-form,
  .tp-card-sand {
    padding: var(--tp-s3);
  }

  .tp-footer {
    padding-bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tp-service-card,
  .tp-mobile-bar,
  .tp-navbar {
    transition: none;
  }
}
