/* Landing page (brand register). Committed color: turmeric carries the hero,
   the closing band and the featured plan; ink carries the integration band. */

section { padding-block: clamp(3.5rem, 9vw, 7rem); }
section h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }

/* ---------- hero ---------- */
.hero { background: var(--turmeric); color: var(--on-turmeric); overflow: hidden; }
.hero .brand-mark { color: var(--on-turmeric); }
.hero .nav-actions .btn-outline { color: var(--on-turmeric); border-color: var(--on-turmeric); }
.hero .nav-actions .btn-outline:hover { background: var(--on-turmeric); color: var(--turmeric); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.mark {
  background-image: linear-gradient(transparent 58%, var(--paper) 58% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.12em; margin-inline: -0.12em;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34rem; margin-top: 1.5rem; color: var(--on-turmeric-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.fine { font-size: 0.95rem; margin-top: 1.25rem; max-width: 32rem; color: var(--on-turmeric-2); }

/* Phone scene: real message text from the gateway's OTP template. */
.hero-visual { position: relative; justify-self: center; width: min(100%, 21rem); padding-bottom: 3rem; }
.phone { background: var(--ink); border-radius: 2.2rem; padding: 0.6rem; box-shadow: 0 1.5rem 3rem -1rem oklch(0.3 0.06 70 / 0.45); transform: rotate(2.5deg); }
.phone-head { display: flex; align-items: center; gap: 0.7rem; background: var(--surface); color: var(--ink); padding: 0.85rem 1rem; border-radius: 1.7rem 1.7rem 0 0; line-height: 1.15; }
.phone-head small { display: block; color: var(--ink-2); font-size: 0.78rem; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--turmeric); color: var(--on-turmeric); display: grid; place-items: center; font: 700 0.85rem var(--font-display); }
.chat { background: var(--paper-2); padding: 1.6rem 0.9rem 5.5rem; border-radius: 0 0 1.7rem 1.7rem; min-height: 16rem; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 0.25rem 1rem 1rem 1rem; padding: 0.75rem 0.9rem 1.5rem; position: relative; font-size: 0.95rem; line-height: 1.45; max-width: 92%; }
.bubble p + p { margin-top: 0.6rem; }
.bubble time { position: absolute; right: 0.7rem; bottom: 0.4rem; font-size: 0.72rem; color: var(--ink-2); }
.otp { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; background: var(--turmeric-soft); padding: 0.05em 0.35em; border-radius: 0.3em; }
.chip { position: absolute; margin: 0; }
.chip-sent { right: -0.5rem; top: 60%; background: var(--surface); color: var(--leaf); border: 2px solid var(--leaf); padding: 0.45rem 0.85rem 0.45rem 0.6rem; border-radius: 999px; font: 600 0.88rem/1 var(--font-body); display: inline-flex; align-items: center; gap: 0.45rem; transform: rotate(-3deg); }
.tick { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--leaf); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 0.34rem; top: 0.2rem; width: 0.28rem; height: 0.5rem; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip-code { left: -1.25rem; bottom: 0; background: var(--code-bg); color: var(--code-fg); font: 400 0.8rem/1.55 var(--font-mono); padding: 0.75rem 1rem; border-radius: 0.75rem; box-shadow: 0 1rem 2rem -0.75rem oklch(0.2 0.04 60 / 0.5); white-space: pre; }
.dim { color: var(--code-dim); }
.ok { color: var(--code-accent); }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; width: min(100%, 19rem); }
  .chip-code { left: -0.5rem; font-size: 0.72rem; }
}

/* ---------- steps ---------- */
.steps { background: var(--paper); }
.step-list { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.step-list li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0 clamp(1rem, 3vw, 2rem); max-width: 46rem; }
.step-list li:nth-child(2) { margin-left: clamp(0rem, 8vw, 6rem); }
.step-list li:nth-child(3) { margin-left: clamp(0rem, 16vw, 12rem); }
.num { font: 800 clamp(4rem, 11vw, 7.5rem)/0.8 var(--font-display); color: var(--turmeric); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; min-width: 0.7em; letter-spacing: -0.04em; }
.step-list h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.step-list p { color: var(--ink-2); max-width: 34rem; }
.steps-note { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); max-width: 42rem; color: var(--ink-2); }

/* ---------- integration band ---------- */
.band-ink { background: var(--ink); color: oklch(0.93 0.02 88); }
.band-ink h2 { color: var(--turmeric); }
.integ { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.integ-copy p { margin-top: 1.25rem; max-width: 32rem; }
.integ-copy .dim { color: oklch(0.75 0.03 85); font-size: 0.95rem; }
.integ-copy code { background: oklch(0.32 0.03 60); color: var(--turmeric); padding: 0.1em 0.4em; border-radius: 0.3em; font-size: 0.86em; }
.plain { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; max-width: 32rem; }
.plain li { padding-left: 1.25rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--turmeric); }
.code-box { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tabs button {
  font: 600 0.9rem/1 var(--font-body); color: oklch(0.8 0.03 85); background: transparent; border: 0; cursor: pointer;
  padding: 0.75rem 1rem; border-radius: 0.6rem 0.6rem 0 0; transition: background-color 0.15s, color 0.15s;
}
.tabs button:hover { color: oklch(0.96 0.02 90); }
.tabs button[aria-selected="true"] { background: var(--code-bg-2); color: var(--turmeric); }
.code { margin: 0; background: var(--code-bg-2); color: var(--code-fg); padding: 1.25rem 1.4rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.7; border-radius: 0 0.75rem 0.75rem 0.75rem; tab-size: 2; }
.code code { font: inherit; }
.responses { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.responses .code { border-radius: 0.75rem; background: var(--code-bg); border: 1px solid oklch(0.34 0.03 60); }
.code.small { font-size: 0.8rem; }
@media (max-width: 60rem) { .integ { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { background: var(--paper); }
.feature-list { margin: 3rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.feature-list > div { padding-block: 1.25rem; border-top: 2px solid var(--line); }
.feature-list dt { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.feature-list dd { margin: 0.4rem 0 0; color: var(--ink-2); max-width: 30rem; }
@media (max-width: 44rem) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- dashboard preview ---------- */
.dash { background: var(--turmeric-soft); }
.dash-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.dash-copy p { margin: 1.25rem 0 1.75rem; max-width: 30rem; color: var(--ink-2); }
.mock { background: var(--surface); border: 2px solid var(--ink); border-radius: 0.9rem; overflow: hidden; box-shadow: 0.6rem 0.6rem 0 var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 2px solid var(--ink); background: var(--turmeric); font: 600 0.85rem var(--font-body); }
.mock-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--ink); }
.mock-bar span { margin-left: 0.6rem; }
.mock-body { padding: 0.5rem 1rem 1rem; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 0.75rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { font: 600 0.78rem var(--font-body); color: var(--ink-2); padding-block: 0.6rem; }
.mock-row small { display: block; font: 400 0.75rem var(--font-mono); color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; justify-self: start; font: 600 0.78rem/1 var(--font-body); padding: 0.35rem 0.6rem; border-radius: 999px; }
.badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--leaf-soft); color: var(--leaf); }
.badge.wait { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 52rem) { .dash-grid { grid-template-columns: 1fr; } .mock-row { grid-template-columns: 1.3fr 1fr; } .mock-row > :nth-child(2) { display: none; } }

/* ---------- pricing ---------- */
.pricing { background: var(--paper); }
.pricing-lead { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
.plan { border: 2px solid var(--ink); border-radius: 1.1rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; background: var(--surface); }
.plan h3 { font-size: 1.6rem; }
.price { display: flex; flex-direction: column; }
.amount { font: 800 clamp(1.8rem, 3.4vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.03em; }
.per { color: inherit; opacity: 0.8; font-size: 0.95rem; }
.limit { font-size: 1.05rem; margin-bottom: auto; }
.limit b { font: 800 1.6rem var(--font-display); }
.plan .btn { align-self: stretch; margin-top: 0.5rem; }
.plan-starter { background: var(--turmeric); color: var(--on-turmeric); transform: translateY(-0.6rem); box-shadow: 0.5rem 0.5rem 0 var(--ink); }
.plan-bisnis { background: var(--ink); color: var(--paper); }
.plan-bisnis h3 { color: var(--turmeric); }
.pricing-note { margin-top: 2rem; color: var(--ink-2); max-width: 42rem; }
@media (max-width: 52rem) { .plans { grid-template-columns: 1fr; } .plan-starter { transform: none; } }

/* ---------- limits (honest section) ---------- */
.limits { background: var(--turmeric-soft); border-block: 2px solid var(--ink); }
.limits-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: l; }
.limit-list li { counter-increment: l; position: relative; padding-left: 2.25rem; }
.limit-list li::before { content: counter(l); position: absolute; left: 0; top: 0; font: 800 1.15rem/1.5 var(--font-display); }
@media (max-width: 52rem) { .limits-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.faq-list details { border-top: 2px solid var(--line); padding-block: 0.25rem; }
.faq-list details:last-child { border-bottom: 2px solid var(--line); }
.faq-list summary { cursor: pointer; font: 700 1.15rem/1.35 var(--font-display); padding-block: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 500 1.6rem/1 var(--font-body); flex: none; transition: transform 0.25s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 40rem; }
@media (max-width: 52rem) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- closing band ---------- */
.final { background: var(--turmeric); color: var(--on-turmeric); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.final h2 { max-width: 20ch; }

/* ---------- entrance motion (transform and opacity only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .phone, .js .chip { opacity: 0; transform: translateY(1.25rem); animation: rise 0.7s var(--ease-out) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .js .phone { animation-delay: 0.15s; --r: 2.5deg; animation-name: rise-tilt; }
  .js .chip-code { animation-delay: 0.7s; }
  .js .chip-sent { animation-delay: 1.1s; --r: -3deg; animation-name: rise-tilt; }
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes rise-tilt { to { opacity: 1; transform: rotate(var(--r)); } }
}
