/*
 * Landing page stylesheet.
 *
 * Every colour, radius and font comes from CSS custom properties that the
 * template writes inline from site.json — so one stylesheet serves every
 * domain while each looks distinct. No framework, no web fonts, no external
 * requests.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Room for the fixed action bar so it never covers the last paragraph. */
body.has-cta-bar {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
}
h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

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

/* ───────────────────────────── Header ───────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.site-header.is-transparent {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.site-header.is-centered .header-inner {
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--fg);
}

@media (max-width: 40rem) {
  .site-nav {
    display: none;
  }
}

/* ────────────────────────────── Hero ────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Layout modes — the visual difference between generated pages. */

.hero--hero-centered .hero-inner {
  text-align: center;
  justify-items: center;
}
.hero--hero-centered .lede {
  margin-inline: auto;
}
.hero--hero-centered .hero-actions {
  justify-content: center;
}

.hero--split-image-left .hero-inner {
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .hero--split-image-left .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero--split-image-left .hero-media {
    order: -1;
  }
}

.hero--magazine .hero-inner {
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .hero--magazine .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero--magazine h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.hero--minimal-text-only,
.hero--long-form-article {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem);
}
.hero--minimal-text-only .hero-inner,
.hero--long-form-article .hero-inner {
  max-width: 46rem;
}
.hero--long-form-article h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
}

.hero--feature-list .hero-inner,
.hero--card-grid .hero-inner {
  max-width: 52rem;
}

/* ───────────────────────────── Sections ─────────────────────────── */

.section {
  padding-block: clamp(2.25rem, 5.5vw, 4rem);
}

.section--alt {
  background: var(--surface);
}

.prose {
  max-width: 68ch;
}

.prose.lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* Long-form pages read better with a narrower measure. */
.layout-long-form-article .prose {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ────────────────────────────── Cards ───────────────────────────── */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.section--alt .card {
  background: var(--bg);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.layout-card-grid .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

/* ────────────────────────────── Steps ───────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  margin-bottom: 0.25em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ────────────────────────────── Stats ───────────────────────────── */

.stats {
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.stat {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.stat dt {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─────────────────────────────── FAQ ────────────────────────────── */

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.02rem;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 0.35rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details > .prose {
  padding-bottom: 1.1rem;
  color: var(--muted);
}

/* ─────────────────────────────── CTA ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--fg);
}

.section--cta {
  background: var(--surface);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin-bottom: 0.3em;
}

.cta-band .prose {
  color: var(--muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ───────────────────────────── Footer ───────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--fg);
}

/* ──────────────────── Fixed action bar (required) ───────────────── */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.5rem clamp(0.5rem, 3vw, 1rem);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.cta-bar-inner {
  max-width: 32rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(var(--cta-count, 3), 1fr);
  gap: 0.5rem;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  border-radius: calc(var(--radius) * 0.8);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease;
}

.cta-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cta-item:hover {
  background: var(--surface);
}

/* The primary action is the one people should notice first. */
.cta-item--daftar {
  background: var(--primary);
  color: var(--primary-ink);
}
.cta-item--daftar:hover {
  background: var(--primary);
  filter: brightness(1.08);
}

.cta-item--whatsapp {
  color: #12924b;
}
.cta-item--livechat {
  color: var(--accent);
}

@media (min-width: 48rem) {
  .cta-bar-inner {
    max-width: 34rem;
  }
  .cta-item {
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
