.cf-calculator {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 18px;
  background: #0b2b67;
  color: #fff;
  scroll-margin-top: 16px;
}
.cf-calculator *, .cf-calculator *::before { box-sizing: border-box; }
.cf-calculator [hidden] { display: none !important; }
.cf-calculator h3 { margin: 0 0 6px; font-size: clamp(20px, 2.5vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.cf-calc-intro { margin: 0 0 16px; max-width: 68ch; color: #e0ebff; font-size: 14px; line-height: 1.5; }
.cf-calc-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.cf-calc-fields fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid #6883ad; border-radius: 10px; background: #163971; }
.cf-calc-fields legend { padding: 0 5px; color: #e2f5ff; font-size: 14px; font-weight: 750; }
.cf-calc-fields label { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 650; line-height: 1.4; }
.cf-calc-fields label:last-child { margin-bottom: 0; }
.cf-calc-fields input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #94abd0;
  border-radius: 7px;
  color: #10294e;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.cf-calc-fields input[aria-invalid="true"] { border: 2px solid #a53831; }
.cf-calculator :is(input,button,a,summary):focus-visible { outline: 3px solid #74e4ef; outline-offset: 3px; }
.cf-calc-help { margin: 1px 0 0; color: #d7e5ff; font-size: 12px; line-height: 1.45; }
.cf-calc-foot { margin-top: 9px; }
.cf-calc-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.cf-calc-submit { background: #67dce9; border-color: #67dce9; color: #08254f; }
.cf-calc-submit:hover:not(:disabled) { background: #91e7ef; color: #08254f; }
.cf-calc-example { background: #163971; border-color: #8fa6c7; }
.cf-calc-status { margin: 7px 0 0; color: #fff; font-size: 13px; line-height: 1.45; }
.cf-calc-status:empty { display: none; }
.cf-calc-results { margin: 12px 0 0; padding: 12px; border-radius: 10px; background: #edf9f8; color: #10294e; }
.cf-calc-results h4 { margin: 0 0 8px; font-size: 16px; }
.cf-calc-results dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0; }
.cf-calc-results dl div { padding: 8px; background: #fff; border: 1px solid #cde5e2; border-radius: 7px; min-width: 0; }
.cf-calc-results dt { margin-bottom: 3px; font-size: 12px; }
.cf-calc-results dd { margin: 0; font-size: clamp(14px, 2vw, 19px); font-weight: 800; overflow-wrap: anywhere; }
.cf-calc-results .cf-calc-profit { border-color: #91c5b8; background: #f7fffc; }
.cf-calc-results p { margin: 9px 0; font-size: 13px; line-height: 1.45; }
.cf-calc-formula { margin-top: 8px; border-top: 1px solid #6883ad; }
.cf-calc-formula summary { display: flex; gap: 8px; align-items: center; min-height: 44px; color: #f0f6ff; cursor: pointer; font-size: 13px; font-weight: 750; }
.cf-calc-formula summary::after { color: #78deeb; font-size: 18px; }
.cf-calc-formula ul { margin: 0 0 6px; padding-left: 19px; color: #e0ebff; font-size: 12px; line-height: 1.6; }

@media (max-width: 760px) {
  .cf-nav { display: none !important; }
  body > div > header > .c2 > div { padding-block: 11px !important; }
  .cf-hero { padding-block: 27px 35px; }
  .cf-hero-grid { gap: 17px; }
  .cf-hero-copy h1 { font-size: clamp(33px, 8.1vw, 46px); line-height: 1.05; margin-bottom: 12px; }
  .cf-hero-copy p:not(.cf-eyebrow) { font-size: 15px; line-height: 1.52; margin-bottom: 15px; }
  .cf-demo {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 500px;
    min-height: clamp(470px, calc(100svh - 30px), 735px);
    scroll-margin-top: 10px;
  }
  .cf-demo-body { display: flex; flex-direction: column; }
  .cf-desk { flex: 1; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(140px,1fr); }
  #cf-demo-input { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
  #cf-demo-input .cf-record {
    grid-template-columns: minmax(52px,.32fr) minmax(0,1fr);
    align-items: center;
    gap: 7px;
    min-height: 37px;
    margin: 0;
    padding: 7px 8px;
  }
  #cf-demo-input .cf-record small, .cf-lane-heading span { font-size: 11px; }
  .cf-empty { padding: 8px 5px; font-size: 13px; }
  section:not(#top):not(#simulasi) { padding-block: clamp(38px, 7vw, 52px) !important; }
  section > .c2 > h2, #kontak h2 {
    font-size: clamp(23px, 5.7vw, 30px) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    text-wrap: pretty !important;
  }
  section > .c2 > h2 + p, #kontak h2 + p {
    font-size: 15px !important;
    line-height: 1.52 !important;
    margin-bottom: 17px !important;
  }
  .c4, .c34 { margin-bottom: 8px; letter-spacing: .1em; font-size: 11px; }
  .c47 { padding: 18px; }
  .c48 { font-size: 21px; line-height: 1.25; margin-bottom: 11px; }
  .c9, .c10, .c18, .c6 { font-size: 15px; line-height: 1.48; }
  .c7 { font-size: 14px; line-height: 1.5; }
  .cf-calc-fields { grid-template-columns: minmax(0,1fr); }
  .cf-calc-fields fieldset { padding: 9px 11px 11px; }
  .cf-calc-fields label { margin-bottom: 8px; }

  .cf-scroll-in { animation: cf-scroll-in .46s cubic-bezier(.2,.65,.28,1) both; animation-delay: var(--cf-scroll-delay, 0ms); }
  @keyframes cf-scroll-in {
    from { opacity: .42; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 760px) and (max-height: 500px) {
  .cf-demo { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-scroll-in { animation: none !important; }
}

.cf-ai-activity {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding: 9px;
  background: #eaf5fb;
  border: 1px solid #cfe4ed;
  border-radius: 10px;
}
.cf-ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 51px;
  padding: 0 5px;
  border: 1px solid #cbe1eb;
  border-radius: 8px;
  background: #f8fdff;
  --cf-signal: #19afa6;
}
.cf-ai-bot {
  display: grid;
  position: relative;
  place-items: center;
  align-self: end;
  width: 24px;
  height: 21px;
  margin-bottom: 11px;
  border: 2px solid #123c65;
  border-radius: 7px;
  background: #def2f6;
}
.cf-ai-bot::before {
  content: '';
  position: absolute;
  top: -8px;
  left: calc(50% - 1px);
  width: 2px;
  height: 6px;
  background: #123c65;
}
.cf-ai-bot::after {
  content: '';
  position: absolute;
  top: -10px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #087876;
}
.cf-ai-bot span {
  width: 4px;
  height: 4px;
  margin-left: -7px;
  border-radius: 50%;
  background: #123c65;
  box-shadow: 7px 0 #123c65;
}
.cf-ai-bot i {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -6px;
  height: 3px;
  border-radius: 4px;
  background: #6597b1;
}
.cf-ai-terminal {
  position: relative;
  display: grid;
  align-content: center;
  flex: 1;
  gap: 3px;
  height: 22px;
  padding: 4px;
  border: 1px solid #376182;
  border-radius: 4px;
  background: #0f3158;
}
.cf-ai-terminal::after {
  content: '';
  position: absolute;
  inset: auto 1px -4px;
  height: 2px;
  border-radius: 3px;
  background: #6597b1;
}
.cf-ai-terminal i { height: 1px; width: 100%; background: #88a8c5; transform-origin: left; }
.cf-ai-terminal i:nth-child(2) { width: 74%; }
.cf-ai-terminal i:nth-child(3) { width: 60%; }
.cf-ai-activity:is([data-phase="read"],[data-phase="assign"],[data-phase="review"]) .cf-ai-terminal i {
  background: #71e3e1;
  animation: cf-ai-read .45s ease-in-out infinite alternate;
}
.cf-ai-activity .cf-ai-terminal i:nth-child(2) { animation-delay: .1s; }
.cf-ai-activity .cf-ai-terminal i:nth-child(3) { animation-delay: .2s; }
.cf-ai-activity:is([data-phase="read"],[data-phase="assign"],[data-phase="review"]) .cf-ai-bot::after { box-shadow: 0 0 0 3px #7ae5db8c; }
.cf-ai-activity[data-phase="review"] .cf-ai-bot::after { background: #a26b14; box-shadow: 0 0 0 3px #ffe0a1; }
.cf-ai-label { margin: 0 0 2px; color: #235575; font-size: 10px; font-weight: 750; line-height: 1.25; }
#cf-ai-action { margin: 0; color: #112d54; font-size: 12px; font-weight: 750; line-height: 1.35; }
.cf-ai-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0; padding: 0; list-style: none; }
.cf-ai-steps li { padding: 2px 5px; border-radius: 4px; background: #fff; color: #4a6681; font-size: 9px; font-weight: 650; line-height: 1.3; }
.cf-ai-steps li[aria-current="step"] { background: #0d655f; color: #fff; }
.cf-ai-steps li[data-complete] { background: #d0eee7; color: #0b594a; }
@keyframes cf-ai-read { from { transform: scaleX(.45); opacity: .6; } to { transform: scaleX(1); opacity: 1; } }
@media (max-width: 360px) {
  .cf-ai-activity { grid-template-columns: 62px minmax(0,1fr); gap: 7px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-ai-activity *, .cf-ai-activity *::before, .cf-ai-activity *::after { animation: none !important; }
}


.cf-calc-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.cf-calc-options label { position: relative; min-width: 0; cursor: pointer; }
.cf-calc-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cf-calc-options span { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid #9bb2d4; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.cf-calc-options input:checked + span { background: #e4f7fd; color: #0b2b67; border-color: #e4f7fd; }
.cf-calc-options input:focus-visible + span { outline: 3px solid #74e4ef; outline-offset: 2px; }
.cf-calc-fields { grid-template-columns: minmax(0,1fr); }
.cf-calculator[data-mode="profit"] .cf-calc-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cf-calc-fields fieldset { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 11px; align-items: start; }
.cf-calc-fields fieldset > p { grid-column: 1 / -1; }
.cf-calc-fields fieldset[data-calc-group="time"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cf-calculator[data-mode="profit"] .cf-calc-fields fieldset { grid-template-columns: minmax(0,1fr); }
.cf-calc-fields label { align-self: stretch; align-content: space-between; }
.cf-calc-fields input::placeholder { color: #60708b; font-size: 13px; }
.cf-calc-optional { color: #d7e5ff; font-size: 11px; font-weight: 500; }
.cf-calc-results .cf-calc-main { margin-top: 0; font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.12; color: #085e51; overflow-wrap: anywhere; }
.cf-calc-results .cf-calc-breakdown { max-width: 65ch; }
@media (max-width: 655px) {
  .cf-calculator[data-mode="profit"] .cf-calc-fields,
  .cf-calc-fields fieldset,
  .cf-calc-fields fieldset[data-calc-group="time"] { grid-template-columns: minmax(0,1fr); }
  .cf-calc-options { gap: 5px; }
  .cf-calc-options span { padding-inline: 8px; font-size: 12px; }
}
