/* jejakmobil.com index — single standalone stylesheet (base + page-scoped redesign). */

:root {
  --bg-main: #F5F0EB;
  --bg-white: #FFFFFF;
  --bg-card: #FAF7F4;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --cta-orange: #E86F4A;
  --cta-hover: #D65A35;
  --border-light: #E8E0D8;
  --font-family: 'Poppins', system-ui, sans-serif;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 2px 8px rgba(46, 32, 16, 0.06);
  --shadow-btn-hover: 0 4px 12px rgba(232, 111, 74, 0.3);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === Typography === */
h1, h2, h3 { color: var(--text-primary); font-weight: 700; line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 28px; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 600; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Sections === */
.section {
  padding: 40px 0;
  background: var(--bg-main);
}
.section-alt {
  padding: 40px 0;
  background: var(--bg-white);
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.section-heading p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 12px auto 0;
}

/* === Hero === */
.hero {
  padding: 48px 0 40px;
  text-align: center;
  background: var(--bg-main);
}
.hero h1 { margin-bottom: 16px; }
.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* === Images === */
.hero-image {
  margin: 32px auto 0;
  border-radius: var(--radius-xl);
  width: 100%;
  height: auto;
}
.section-image {
  margin: 32px auto 0;
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* === CTA Button === */
.cta-button {
  display: inline-block;
  background: var(--cta-orange);
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  min-height: 48px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.cta-button:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-btn-hover);
}

/* === Problem / Benefit List === */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-list-item {
  background: var(--bg-card);
  border-left: 4px solid var(--cta-orange);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
}

/* === Solution / Feature Grid === */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.feature-card h3 { margin-bottom: 8px; }

/* === Step Cards (How It Works) === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  counter-reset: step;
}
.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--cta-orange);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step-card h3 { margin-bottom: 4px; }

/* === Scenario Block === */
.scenario-block {
  background: var(--bg-white);
  border-left: 4px solid var(--cta-orange);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
.scenario-block p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.scenario-block .outcome {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
}

/* === Before/After Compare Grid === */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.compare-col {
  border-radius: var(--radius-xl);
  padding: 24px;
}
.compare-col--before {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.compare-col--after {
  background: var(--bg-white);
  border: 2px solid var(--cta-orange);
}
.compare-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.compare-col--before h3 { color: var(--text-muted); }
.compare-col--after h3 { color: var(--cta-orange); }
.compare-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.compare-item:last-child { border-bottom: none; }
.compare-icon { flex-shrink: 0; font-size: 16px; }

/* Footer bottom line */
.footer-multi-bottom {
  max-width: 960px;
  margin: 48px auto 0;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* === Closing CTA === */
.closing-cta {
  padding: 48px 0;
  text-align: center;
}
.closing-cta h2 { margin-bottom: 12px; }

/* === Desktop (769px+) === */
@media (min-width: 769px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }

  .section, .section-alt { padding: 64px 0; }

  .hero { padding: 80px 0 64px; }
  .hero p { font-size: 22px; }

  .cta-button { width: auto; }

  .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .feature-grid .feature-card { flex: 1 1 calc(50% - 8px); }

  .steps { flex-direction: row; }
  .step-card {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compare-grid { grid-template-columns: 1fr 1fr; }

  .closing-cta { padding: 80px 0; }
}

/* === Page-scoped redesign (moved from src/index.html) — overrides the base above === */

/* === Type scale (Tailwind steps) === */
body { line-height: 1.5; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
h1,
.closing-cta h2 { font-size: 30px; line-height: 36px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 20px; line-height: 28px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cta-orange);
  outline-offset: 2px;
}

/* === Layout: centered rhythm === */
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 12px auto 0; max-width: 640px; }
.section-heading strong { color: var(--text-primary); font-weight: 600; }

.section { padding: 40px 0 48px; }
.section-alt { padding: 40px 0 48px; }
.section--cta { padding: 48px 0; }

.closing-line {
  margin-top: 24px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}

.payoff-note {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 24px;
}
.payoff-note strong { color: var(--text-primary); }
.payoff-note--muted {
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.compare-closer {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}

.accent { color: var(--cta-orange); }

/* === Hero (centered, as original) === */
.hero { padding: 48px 0 40px; text-align: center; }
.hero h1,
.closing-cta h2 {
  margin-bottom: 16px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 28px;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero-image {
  margin: 32px auto 0;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  max-width: 960px;
  box-shadow: var(--shadow-card);
}

/* === Cards: full borders, no single-side borders === */
.card-list-item { border: 1px solid var(--border-light); border-left: none; font-variant-numeric: tabular-nums; }

.card-list--center { max-width: 640px; margin: 0 auto; }
.card-list--center .card-list-item { text-align: center; }

.scenario-block--center { max-width: 640px; margin: 0 auto; text-align: center; }

.feature-grid--center { max-width: 960px; margin: 0 auto; }
.feature-grid--center .feature-card { text-align: center; }

.section-image--center {
  max-width: 960px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.compare-grid--center { max-width: 960px; margin: 0 auto; }
.compare-grid--center .compare-col { text-align: center; }
.compare-grid--center .compare-item { justify-content: center; }

.steps--center { max-width: 960px; margin: 0 auto; }
.steps--center .step-card { text-align: center; }

@media (max-width: 768px) {
  .steps--center .step-card { justify-content: center; }
}

.scenario-block { border: 1px solid var(--border-light); }
.scenario-block, .scenario-block strong, .outcome {
  font-variant-numeric: tabular-nums;
}

/* === Asymmetric feature grids === */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-grid--lead { max-width: 960px; margin: 0 auto; }
.feature-grid--lead .feature-card { text-align: center; }
.feature-grid--lead .feature-card:first-child { grid-column: 1 / -1; }

/* === CTA highlight card === */
.cta-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-white);
  border: 2px solid var(--cta-orange);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
.cta-card h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.cta-card p { color: var(--text-secondary); margin-bottom: 24px; }

/* === Quote wall (replaces carousel) === */
.quote-wall { max-width: 960px; margin: 0 auto; columns: 1; column-gap: 16px; }
.quote-card {
  break-inside: avoid;
  margin-bottom: 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.quote-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-card);
}
.quote-card blockquote {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.quote-card blockquote::before { content: "\201C"; }
.quote-card blockquote::after { content: "\201D"; }
.quote-card-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.quote-card-role {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

/* === Closing CTA === */
.container.closing-cta { text-align: center; padding: 0 24px; }
.closing-cta h2 { margin: 0 auto 24px; }
.closing-cta .cta-button { margin-top: 24px; }

/* === Button states === */
.cta-button {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
  transition: all 200ms var(--ease);
}
.cta-button:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-btn-hover);
}
.cta-button:active { transform: scale(0.98); }

/* === Motion: scroll reveals === */
.reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

[data-stagger] > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger] > *:nth-child(5) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  [data-stagger] > * { transition-delay: 0ms; }
}

/* === Desktop === */
@media (min-width: 769px) {
  h1,
  .closing-cta h2 { font-size: 48px; line-height: 1; }
  h2 { font-size: 36px; line-height: 40px; }

  .section, .section-alt { padding: 64px 0 80px; }
  .hero { padding: 80px 0 64px; }
  .hero-copy p { font-size: 20px; line-height: 28px; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid--lead { grid-template-columns: 1fr 1fr 1fr; }
  .feature-grid--lead .feature-card:first-child { grid-column: auto; }
  .quote-wall { columns: 2; }

  .footer-multi-bottom { margin-top: 80px; }
}
