/* ARSWORD /pos/ (owner, 2026-10-02: designed with Stitch in the home's style; the packages "seperti biasa", Lengkap in
   black, no light/dark switch). The page's base is the configurator's own sheet (styles.css) with the shared chrome and
   the night layer (malam.css); this sheet lays the page out: a shorter night hero, the packages as cards, the
   configurator ("Racik sendiri") with its feature groups folded and the summary as a card beside them (a sheet on
   phones, as before), the steps, the dark close. */

:root { --page: 1320px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
/* the configurator's sheet keeps the browser's heading margins; the night layer's headings expect none */
.pos .b-hero h1, .pos .b-h2, .pos .b-end h2, .pos .pk h3 { margin: 0; }
.pos .p-steps h3 { margin-bottom: 0; }

/* ---------- hero */
.p-hero { min-height: max(540px, 70svh); padding: calc(var(--topbar) + clamp(40px, 7vh, 80px)) 0 clamp(64px, 9vh, 104px); }
.p-hero h1 { max-width: 12ch; font-size: clamp(2.9rem, 1.2rem + 5.2vw, 6.25rem); }
.p-from { margin-top: 18px; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- packages */
.p-bill { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--sunken); }
.p-bill button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--ink-2); font-size: var(--fs-md); font-weight: 500; transition: background-color .2s, color .2s;
}
.p-bill button:hover { color: var(--ink); }
.p-bill button[aria-pressed="true"], .p-bill button[aria-pressed="true"]:hover { background: var(--inverse); color: var(--on-inverse); }

.p-cards { --gap: clamp(16px, 1.6vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); min-height: 480px; }
.p-cards .loading { flex: 1 1 100%; padding: 0; }
.pk {
  /* three to a row, never wider than 400px (the half pixel keeps rounding from pushing the third one down) */
  flex: 0 1 calc((100% - 2 * var(--gap)) / 3 - .5px); max-width: 400px; min-width: 0; display: flex; flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px); border: 1px solid var(--line); border-radius: 28px;
  background: var(--canvas); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.pk:not(.is-featured):hover { border-color: var(--line-strong); }
.pk h3 { font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.pk-desc { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-3); }
.pk-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: clamp(24px, 2.4vw, 32px); }
.pk-price b { font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.pk-price small { font-size: var(--fs-sm); color: var(--ink-3); }
.pk-facts { list-style: none; display: grid; gap: 14px; margin: clamp(24px, 2.4vw, 32px) 0 0; padding: clamp(24px, 2.4vw, 32px) 0 0; border-top: 1px solid var(--line); }
.pk-facts li { display: flex; gap: 12px; font-size: var(--fs-md); line-height: 1.45; color: var(--ink-2); }
.pk-facts .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ink); stroke-width: 2; }
.pk-acts { display: grid; gap: 4px; margin-top: auto; padding-top: clamp(28px, 3vw, 40px); }
.pk-pick { width: 100%; min-height: 48px; background: var(--inverse); color: var(--on-inverse); }
.pk-pick:hover { background: var(--inverse-hover); }
.pk-pick .ico { display: none; }
.pk-pick[aria-pressed="true"] .ico { display: block; }
.pk-more {
  justify-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none;
  color: var(--ink-3); font-size: var(--fs-sm); font-weight: 500;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s;
}
.pk-more:hover { color: var(--ink); text-decoration-color: currentColor; }
/* Lengkap in black (owner's choice), its own tokens so the words and the white button turn over by themselves */
.pk.is-featured {
  --canvas: #0a0a0a; --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .3);
  --ink: #f5f5f5; --ink-2: rgba(245, 245, 245, .78); --ink-3: rgba(245, 245, 245, .58);
  --inverse: #ffffff; --inverse-hover: #e2e2e2; --on-inverse: #0a0a0a;
  border-color: #0a0a0a; box-shadow: 0 32px 64px -36px rgba(0, 0, 0, .55);
}
.pk.is-featured :focus-visible { outline-color: #fff; }
/* the package the configurator matches */
.pk.is-chosen:not(.is-featured) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pk.is-chosen.is-featured { outline: 2px solid #0a0a0a; outline-offset: 4px; }
.p-note { margin-top: clamp(20px, 2.2vw, 28px); text-align: center; font-size: var(--fs-md); color: var(--ink-2); }
.p-note:empty { display: none; }
.p-fine { margin-top: 8px; text-align: center; font-size: var(--fs-sm); color: var(--ink-3); text-wrap: balance; }

/* ---------- the configurator */
.p-racik { padding-bottom: clamp(96px, 11vw, 168px); }
.p-racik > .wrap { padding-top: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); }
.p-racik:focus, .p-racik h2:focus { outline: none; }
.p-sub { margin-top: 10px; font-size: var(--fs-md); color: var(--ink-3); }
.p-racik .steps { max-width: 560px; margin-bottom: clamp(24px, 2.6vw, 36px); }
.p-cfg { display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 34%); gap: clamp(32px, 3.6vw, 56px); align-items: start; }
.p-cfg .flow { padding: 0; }
.p-h3 { margin: 0 0 20px; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.p-h3.xl { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.03em; }
.step-next, .step-end { margin-top: clamp(40px, 4.4vw, 64px); padding-top: 32px; }
/* (the list above ends on its own rule: one line, not two; UI audit 2026-10-03) */
.step-next { margin-top: 28px; padding-top: 0; border-top: 0; }
.qlink { display: none !important; } /* (its questions are asked in the Studio now) */
@media (max-width: 599.98px) { .stepper input, .preview textarea { font-size: 16px; } }
/* a tablet: the three package cards side by side, not two and one alone */
@media (min-width: 720px) and (max-width: 1023.98px) { .p-cards { flex-wrap: nowrap; } .p-cards > * { flex: 1 1 0; min-width: 0; } }

/* the feature groups, folded: a row each (name, chosen of all, a plus), the features inside */
.cat { border-bottom: 1px solid var(--line); }
.cat:first-child { border-top: 1px solid var(--line); }
.cat-h { margin: 0; }
.cat-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 2px;
  border: 0; background: none; color: var(--ink); text-align: left;
  font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em;
}
.cat-name { flex: 1; min-width: 0; }
.cat-btn .ri-count { font-size: var(--fs-md); font-weight: 400; }
.cat-btn .ico { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
.cat-btn:hover .ico, .cat-btn[aria-expanded="true"] .ico { color: var(--ink); }
.cat-btn[aria-expanded="true"] .ico { transform: rotate(45deg); }
.cat-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.cat-body { padding: 0 0 24px; }
.cat-ket { margin: -2px 0 16px; font-size: var(--fs-md); color: var(--ink-2); }
/* the features as quiet rows, as the Stitch design draws them: check, name and price on a line, the words under the
   name (never the wide three-column tile here), a chosen one on white with a hairline of ink */
.p-cfg .tile { padding: 16px 18px; border-radius: 16px; background: var(--panel); }
.p-cfg .tile.on { background: var(--canvas); box-shadow: none; }
.p-cfg .tile-desc { font-size: var(--fs-sm); }
@container tiles (min-width: 760px) {
  .p-cfg .tile {
    grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "check name price" ". desc desc" ". meta meta" ". ctl ctl";
    column-gap: 14px; padding: 16px 18px;
  }
}

/* the summary: a card beside the features from 1024px (below, the sheet styles.css makes of it) */
@media (min-width: 1024px) {
  .summary {
    top: calc(var(--topbar) + 20px); height: auto; max-height: calc(100vh - var(--topbar) - 40px); max-height: calc(100dvh - var(--topbar) - 40px);
    overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--canvas);
  }
  .sum-foot { background: var(--canvas); }
}
/* in step 1 the way on is the business data, WhatsApp a quiet link under it; in step 2 the summary sends as before */
.sum-next { width: 100%; }
html[data-step="2"] .sum-next { display: none; }
html:not([data-step="2"]) #btn-copy, html:not([data-step="2"]) #btn-dl, html:not([data-step="2"]) #send-note { display: none; }
html:not([data-step="2"]) #btn-wa {
  min-height: 40px; background: none; color: var(--ink-2); font-size: var(--fs-md); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
}
html:not([data-step="2"]) #btn-wa:hover { color: var(--ink); text-decoration-color: currentColor; }
html:not([data-step="2"]) #btn-wa .ico { display: none; }

/* ---------- the steps: four */
.p-steps ol { --cols: 4; }

/* ---------- smaller screens */
@media (max-width: 1023.98px) {
  .p-cfg { display: block; }
  .p-cfg .flow { padding-bottom: 96px; }
  /* the summary bar only while the configurator is on screen (pos.js) */
  .bottombar { transition: transform .45s var(--ease); }
  .bottombar.is-away { transform: translateY(110%); }
}
@media (max-width: 999.98px) {
  .pk { flex-basis: calc((100% - var(--gap)) / 2 - .5px); max-width: 440px; }
  .p-steps ol { --cols: 2; }
}
@media (max-width: 699.98px) {
  .pk { flex-basis: 100%; max-width: 560px; }
  .p-bill { width: 100%; }
  .p-bill button { flex: 1; }
  .p-racik .steps { max-width: none; }
}
@media (max-width: 519.98px) {
  .p-hero .b-actions { gap: 10px; }
  .p-hero .b-actions .cta { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-btn .ico, .bottombar { transition: none; }
}
