/* Editorial commerce layer for the CicilRapi product page. */
.design-gallery,
.ai-section,
.commerce-packages,
.purchase-faq { scroll-margin-top: 82px; }

.design-gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5.5vw, 68px);
  border: 2px solid var(--ink);
  background: #f1efdf;
  box-shadow: 8px 8px 0 var(--ink);
}
.design-gallery::before {
  position: absolute;
  z-index: -1;
  top: -.28em;
  right: -.035em;
  color: #2429230b;
  content: "09";
  font-size: clamp(190px, 33vw, 470px);
  font-weight: 900;
  letter-spacing: -.12em;
  line-height: 1;
  pointer-events: none;
}
.design-gallery .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .65fr);
  align-items: end;
  gap: 10px 32px;
  max-width: none;
  margin: 0 0 28px;
}
.design-gallery .section-title .eyebrow { grid-column: 1 / -1; }
.design-gallery .section-title h2 {
  max-width: 720px;
  margin: 4px 0 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .9;
  letter-spacing: -.09em;
}
.design-gallery .section-title p { max-width: 360px; margin: 0 0 4px; font-size: 14px; }
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 13px;
  color: #51594f;
  font: 10px var(--mono);
}
.gallery-controls button,
.ai-example-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font: 700 18px/1 var(--sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.gallery-controls button:disabled,
.ai-example-controls button:disabled { opacity: .42; cursor: default; }
.design-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 17px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #565f50 #d8d9cc;
  scrollbar-width: thin;
}
.design-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  flex-direction: column;
  padding: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 var(--ink);
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.design-card:nth-child(3n + 1) { background: #d7e8ed; }
.design-card:nth-child(3n + 2) { background: #e8edda; }
.design-card:nth-child(3n) { background: #e8def5; }
.design-card > a:first-child { position: relative; display: block; overflow: hidden; border: 1px solid #242923; background: #f8f6ed; }
.design-card > a:first-child::after {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 6px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  content: "0" counter(design-card);
  font: 9px var(--mono);
}
.design-grid { counter-reset: design-card; }
.design-card { counter-increment: design-card; }
.design-card img { display: block; width: 100%; height: 275px; object-fit: cover; object-position: top; }
.design-card > div { padding: 10px 4px 4px; }
.design-card h3 { margin: 2px 0 4px; font-size: 18px; }
.design-card p { min-height: 38px; margin: 0; font-size: 11px; line-height: 1.45; }
.design-card > div > a { display: inline-flex; min-height: 42px; align-items: center; margin-top: 3px; font-size: 11px; font-weight: 800; text-underline-offset: 4px; }
.design-gallery > .fine { margin: 9px 2px 0; font-size: 11px !important; }

.ai-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  overflow: hidden;
  padding: clamp(22px, 5vw, 54px);
  border: 2px solid var(--ink);
  background: #242923;
  box-shadow: 8px 8px 0 #cafa68;
  color: #f8f5ea;
}
.ai-section .eyebrow { border-color: #cafa68; background: #cafa68; color: #242923; }
.ai-section h2 { margin: 17px 0 13px; font-size: clamp(39px, 6vw, 68px); line-height: .91; letter-spacing: -.09em; }
.ai-section p { color: #d1d8cc; font-size: 14px; }
.ai-section strong { color: #fffdf7; }
.ai-benefits { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.ai-benefits li { position: relative; padding: 0 0 9px 23px; border-bottom: 1px solid #ffffff2b; color: #eef1e8; font-size: 12px; }
.ai-benefits li::before { position: absolute; left: 0; color: #cafa68; content: "↗"; font: 700 13px var(--mono); }
.ai-extra-info { padding: 9px 11px; border: 1px solid #879382; background: #2b332d; }
.ai-extra-info summary { min-height: 42px; color: #f8f5ea; font-size: 12px; }
.ai-extra-info p { font-size: 11px; }
.ai-section .text-link { min-height: 44px; margin-top: 8px; color: #f6d66c; font-size: 12px; font-weight: 800; }
.ai-examples { min-width: 0; padding: 14px; border: 1.5px solid #3b443d; background: #f1efe4; box-shadow: 5px 5px 0 #cafa68; color: var(--ink); }
.ai-examples-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.ai-examples-top .badge { border-radius: 0; background: #d5e7ef; }
.ai-examples-top .fine { color: #596056; font-size: 9px !important; }
.ai-examples-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ai-examples-track::-webkit-scrollbar { display: none; }
.ai-example { display: grid; flex: 0 0 calc((100% - 28px) / 3); min-width: 0; margin: 0; scroll-snap-align: start; }
.ai-example figcaption { min-height: 94px; padding: 9px 2px; }
.ai-example .number { display: inline-block; padding: 3px 5px; border: 1px solid var(--ink); background: #cafa68; font: 9px var(--mono); }
.ai-example h3 { margin: 8px 0 4px; font-size: 13px; }
.ai-example p { margin: 0; color: #52594f; font-size: 10px; line-height: 1.4; }
.ai-example-image { height: 250px; overflow: hidden; border: 1px solid #555b51; background: #fff; }
.ai-example-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ai-example-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 11px; }
.ai-example-controls button { width: 40px; height: 40px; font-size: 15px; }
.ai-example-controls span { min-width: 38px; text-align: center; font: 10px var(--mono); }
.ai-examples > .fine { margin: 2px 0 0; color: #596056; font-size: 9px !important; }

.commerce-packages {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1320px, calc(100% - 48px));
  padding: clamp(24px, 5.8vw, 72px);
  border: 2px solid var(--ink);
  background: #d7e9ef;
  box-shadow: 9px 9px 0 var(--ink);
}
.commerce-packages::before {
  position: absolute;
  z-index: -1;
  top: -.36em;
  right: -.04em;
  color: #2429230b;
  content: "04";
  font-size: clamp(220px, 38vw, 510px);
  font-weight: 900;
  letter-spacing: -.14em;
  line-height: 1;
  pointer-events: none;
}
.commerce-packages .section-label { position: relative; margin-bottom: 24px; }
.commerce-packages .package-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 32px;
  padding: 8px 0 21px;
}
.commerce-packages .package-heading h2 { max-width: 720px; margin: 4px 0 10px; font-size: clamp(45px, 7vw, 82px); line-height: .91; letter-spacing: -.09em; }
.commerce-packages .package-heading p { max-width: 590px; margin: 0; font-size: 14px; }
.commerce-packages .edition-switch { display: flex; width: min(100%, 360px); padding: 5px; border: 2px solid var(--ink); background: #fffdf7; box-shadow: 3px 3px 0 var(--ink); }
.commerce-packages .edition-switch button { flex: 1 1 0; min-height: 46px; padding: 8px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 800 11px/1.25 var(--sans); cursor: pointer; touch-action: manipulation; transition: background .2s ease, color .2s ease, transform .2s ease; }
.commerce-packages .edition-switch button[aria-pressed="true"] { border-color: var(--ink); background: #cafa68; box-shadow: 2px 2px 0 var(--ink); }
.commerce-packages .edition-description { max-width: 740px; min-height: 42px; margin: 0 0 22px; padding: 10px 13px; border-left: 3px solid var(--ink); background: #fffdf7b8; color: #414940; font-size: 12px; line-height: 1.5; }
.commerce-packages .package-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.commerce-packages .package-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0 18px 18px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fffdf7;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.commerce-packages .package-card.featured { background: #e3f1c1; }
.commerce-packages .package-card.package-blueprint { background: #fff0b8; }
.commerce-packages .package-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 42px; padding: 10px 0 8px; border-bottom: 1px solid #b7bbb0; font: 9px/1.35 var(--mono); }
.commerce-packages .package-top > span:first-child { padding-top: 4px; }
.commerce-packages .package-badge { max-width: 58%; padding: 4px 7px; border: 1px solid var(--ink); border-radius: 0; background: #d5edac; color: var(--ink); font: 700 9px/1.25 var(--sans); text-align: center; }
.commerce-packages .package-badge.blue { background: #d5e7ef; }
.commerce-packages .package-badge.yellow { background: #f6d66c; }
.package-art { position: relative; display: grid; min-height: 132px; place-items: center; overflow: hidden; margin: 12px -7px 2px; padding: 13px; border: 1px solid var(--ink); background: #e8e7db; }
.package-art::before { position: absolute; inset: 0; background-image: radial-gradient(#24292328 1px, transparent 1px); background-size: 14px 14px; content: ""; opacity: .45; }
.art-window { position: relative; width: min(100%, 330px); padding: 12px; border: 1.5px solid var(--ink); background: #fffdf7; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1deg); }
.art-window > span { display: block; margin-bottom: 8px; color: #5c6359; font: 8px var(--mono); letter-spacing: .06em; }
.art-window > strong { display: block; font-size: 13px; }
.art-window > small { display: block; margin-top: 5px; color: #5d6659; font: 9px var(--mono); }
.art-flow { display: flex; align-items: center; gap: 6px; margin-top: 9px; font: 8px var(--mono); }
.art-flow b { padding: 5px 7px; border: 1px solid var(--ink); background: #d5e7ef; }
.art-flow i { width: 13px; border-top: 1px dashed var(--ink); }
.package-art-rancang { background: #f6d66c; }
.package-art-file { background: #cbe4ed; }
.package-art-guide { background: #d4eca8; }
.package-art-complete { background: #ddd2ef; }
.art-code { position: relative; width: min(100%, 330px); padding: 9px 11px; border: 1.5px solid var(--ink); background: #202a26; box-shadow: 4px 4px 0 var(--ink); color: #f7f5e9; font: 8px/1.7 var(--mono); transform: rotate(1deg); }
.art-code header { margin: -9px -11px 7px; padding: 5px 9px; border-bottom: 1px solid #566357; background: #cafa68; color: var(--ink); }
.art-code i { color: #b8e377; font-style: normal; }
.art-steps { position: relative; display: grid; width: min(100%, 330px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.art-steps span { min-width: 0; padding: 8px 5px; border: 1px solid var(--ink); background: #fffdf7; box-shadow: 2px 2px var(--ink); font: 8px/1.35 var(--mono); text-align: center; }
.art-steps b { display: block; margin-bottom: 4px; color: #4f7140; font-size: 12px; }
.art-designs { position: relative; display: grid; width: 160px; grid-template-columns: repeat(3, 1fr); gap: 5px; transform: rotate(-3deg); }
.art-designs i { aspect-ratio: 1; border: 1px solid var(--ink); background: #f6d66c; box-shadow: 2px 2px var(--ink); }
.art-designs i:nth-child(3n + 2) { background: #cafa68; }
.art-designs i:nth-child(3n) { background: #d5e7ef; }
.art-designs i:nth-child(4n) { background: #d9c8ff; }
.art-designs b { position: absolute; right: -92px; bottom: 4px; padding: 6px; border: 1px solid var(--ink); background: #fffdf7; font: 8px var(--mono); }
.commerce-packages .package-card h3 { margin: 12px 0 6px; font-size: clamp(25px, 3vw, 34px); line-height: .98; }
.commerce-packages .package-intro { min-height: 45px; margin: 0; color: #4e564d; font-size: 12px; line-height: 1.45; }
.commerce-packages .price { display: flex; align-items: baseline; gap: 11px; margin: 10px 0 12px; padding: 11px 0; border-block: 1px solid #c4c8bc; }
.commerce-packages .price s { color: #70776d; font-size: 12px; }
.commerce-packages .price span { color: #40593a; font: 9px var(--mono); }
.commerce-packages .price strong { margin-left: auto; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.06em; }
.package-includes { margin: 0 0 10px; border-top: 1px solid #c4c8bc; border-bottom: 1px solid #c4c8bc; }
.package-includes summary { position: relative; min-height: 44px; padding-right: 25px; color: #333b33; font-size: 11px; }
.package-includes summary::after { position: absolute; top: 50%; right: 2px; content: "+"; font: 16px var(--mono); transform: translateY(-50%); }
.package-includes[open] summary::after { content: "−"; }
.commerce-packages .package-card ul { flex: initial; margin: 0; padding: 0 0 8px 19px; font-size: 11px; }
.commerce-packages .package-card li { margin: 7px 0; line-height: 1.45; }
.commerce-packages .package-footnote { margin: 8px 0 0; color: #555d53; font-size: 10px; line-height: 1.5; }
.commerce-packages .package-evidence { margin-top: 9px; padding: 7px 9px; border: 1px dashed #888e80; background: #fffdf7a8; }
.commerce-packages .package-evidence summary { min-height: 36px; font-size: 10px; }
.commerce-packages .package-evidence p { font-size: 10px; }
.commerce-packages .package-cta { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; margin-top: auto; padding: 10px 13px; border: 2px solid var(--ink); border-radius: 2px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font: 800 12px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.commerce-packages .package-note { margin: 25px 0 12px; padding: 16px 18px; border: 1.5px dashed var(--ink); background: #fffdf7; font-size: 13px; }
.commerce-packages .license-note { margin-top: 17px; padding-top: 15px; border-top: 1px solid #87968a; }
.commerce-packages .license-note span { color: #4e5b4e; font-size: 9px; }
.commerce-packages .license-note p { color: #485248; font-size: 11px; line-height: 1.5; }

.purchase-faq { width: min(1040px, calc(100% - 48px)); margin: 82px auto; }
.purchase-faq-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(240px, 1.2fr); align-items: end; gap: 24px; margin-bottom: 22px; }
.purchase-faq-head h2 { margin: 9px 0 0; font-size: clamp(37px, 6vw, 65px); line-height: .92; letter-spacing: -.085em; }
.purchase-faq-head p { max-width: 420px; margin: 0; font-size: 13px; }
.purchase-faq details { padding: 5px 2px; border-top: 1px solid #9ea397; }
.purchase-faq details:last-child { border-bottom: 1px solid #9ea397; }
.purchase-faq summary { min-height: 52px; padding-right: 12px; font-size: 14px; }
.purchase-faq details p { max-width: 760px; padding: 0 0 13px; font-size: 12px; line-height: 1.6; }
.commerce-support { margin-top: 18px; padding: 5px 12px; border: 1px dashed #858b7d; background: #f0f0e4; }
.commerce-support figure { max-width: 170px; margin: 12px 0; }
.commerce-support img { display: block; width: 100%; height: auto; border: 1px solid #c5c8bd; background: #fff; }
.commerce-support figcaption { font-size: 11px; }

@media (hover: hover) {
  .gallery-controls button:hover,
  .ai-example-controls button:not(:disabled):hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
  .design-card:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: 6px 7px 0 var(--ink); }
  .commerce-packages .package-card:hover { transform: translateY(-3px); box-shadow: 7px 8px 0 var(--ink); }
  .commerce-packages .package-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: #ffe27b; }
}
@media (max-width: 800px) {
  .design-gallery .section-title { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .design-gallery .section-title p { max-width: 520px; }
  .ai-section { grid-template-columns: minmax(0, 1fr); }
  .ai-section > div:first-child { max-width: 650px; }
  .ai-example-image { height: 300px; }
  .commerce-packages .package-heading { grid-template-columns: minmax(0, 1fr); }
  .commerce-packages .edition-switch { width: min(100%, 440px); }
  .purchase-faq-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 620px) {
  .design-gallery { width: calc(100% - 30px); padding: 22px 16px 18px; box-shadow: 5px 5px 0 var(--ink); }
  .design-gallery .section-title h2 { font-size: clamp(39px, 12vw, 58px); }
  .design-gallery .section-title p { font-size: 12px; }
  .gallery-controls { justify-content: space-between; gap: 8px; font-size: 9px; }
  .gallery-controls button { width: 44px; height: 44px; flex: 0 0 44px; }
  .design-grid { gap: 12px; margin-inline: -2px; padding-inline: 2px 10px; }
  .design-card { flex-basis: min(78vw, 300px); padding: 7px; box-shadow: 3px 3px 0 var(--ink); }
  .design-card img { height: 255px; }
  .design-card p { min-height: 0; }
  .ai-section { width: calc(100% - 30px); gap: 22px; padding: 22px 16px; box-shadow: 5px 5px 0 #cafa68; }
  .ai-section h2 { font-size: clamp(38px, 11vw, 54px); }
  .ai-section p { font-size: 12px; }
  .ai-examples { margin: 0 2px 5px 0; padding: 10px; }
  .ai-examples-track { gap: 11px; }
  .ai-example { flex-basis: min(72vw, 250px); }
  .ai-example-image { height: 290px; }
  .commerce-packages { width: calc(100% - 30px); padding: 23px 15px 18px; box-shadow: 5px 5px 0 var(--ink); }
  .commerce-packages .section-label { align-items: flex-start; font-size: 8px; }
  .commerce-packages .package-heading h2 { font-size: clamp(42px, 12vw, 60px); }
  .commerce-packages .package-heading p { font-size: 12px; }
  .commerce-packages .edition-switch { width: 100%; }
  .commerce-packages .edition-switch button { min-height: 46px; padding-inline: 5px; font-size: 10px; }
  .commerce-packages .edition-description { min-height: 0; font-size: 11px; }
  .commerce-packages .package-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .commerce-packages .package-card { padding-inline: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .package-art { min-height: 112px; margin-inline: -5px; }
  .commerce-packages .package-card h3 { font-size: 30px; }
  .commerce-packages .package-intro { min-height: 0; font-size: 12px; }
  .commerce-packages .price strong { font-size: 25px; }
  .commerce-packages .package-card ul { font-size: 11px; }
  .commerce-packages .package-note { margin-top: 18px; font-size: 11px; line-height: 1.5; }
  .commerce-packages .license-note { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .commerce-packages .license-note p { font-size: 10px; }
  .purchase-faq { width: calc(100% - 30px); margin: 55px auto; }
  .purchase-faq-head h2 { font-size: clamp(37px, 11vw, 55px); }
  .purchase-faq-head p { font-size: 12px; }
  .purchase-faq summary { font-size: 13px; }
  .purchase-faq details p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-controls button,
  .ai-example-controls button,
  .design-card,
  .commerce-packages .package-card,
  .commerce-packages .package-cta { transition: none; }
}

/* Buyer help and support moved into the single CicilRapi journey. */
.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px);
  border: 2px solid var(--ink);
  background: #edf1e2;
  box-shadow: 7px 7px 0 var(--ink);
}
.support-section h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 58px); line-height: .98; letter-spacing: -.065em; }
.support-section p { max-width: 600px; }
.support-section details,
.purchase-faq details { border-top: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.support-section summary,
.purchase-faq summary { padding: 17px 0; font-weight: 700; cursor: pointer; }
.support-section figure { max-width: 250px; margin: 8px auto 18px; }
.support-section img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 10px; }
.support-section figcaption { padding-top: 10px; font-size: 13px; }
.purchase-faq { padding: clamp(24px, 5vw, 56px); border: 2px solid var(--ink); background: #fffdf6; box-shadow: 7px 7px 0 var(--ink); }
.purchase-faq h2 { max-width: 720px; margin: 0 0 24px; font-size: clamp(36px, 6vw, 68px); line-height: .95; letter-spacing: -.07em; }
.purchase-faq details { padding: 0 4px; }
.purchase-faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.purchase-faq details p { max-width: 760px; padding: 0 0 12px; }
@media (max-width: 700px) {
  .support-section { grid-template-columns: 1fr; gap: 18px; }
  .support-section figure { max-width: min(230px, 74vw); }
  .purchase-faq { padding: 22px 18px; }
  .purchase-faq summary { padding: 16px 0; }
}